$apply directive for update