angular server directive update