Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • I recommend doing a watch and deregistering when the form is initialized, that way your function will run only once. It's either that or a timeout, and in that case I personally prefer a watch. Using a timeout can work too, but in other cases it might not work, for example if a variable is initialized on your scope when a REST call is completed.. Commented May 5, 2014 at 15:59