Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance #14

Closed
johnpapa opened this issue Aug 1, 2014 · 4 comments
Closed

Performance #14

johnpapa opened this issue Aug 1, 2014 · 4 comments

Comments

@johnpapa
Copy link
Owner

johnpapa commented Aug 1, 2014

Include watchers, bindonce, templatecache, and a slew of other fun stuff

@prbaron
Copy link

prbaron commented Sep 2, 2014

Hello,

I have a question. For watchers, do you place them inside or outside activate() ?

I have a service setting a promise and my watcher need the result of this service to be functional. If I set the watcher inside the activate(), it works out of the box, but if I set the watcher outside, I have to add a validation.

Best regards.

@johnpapa
Copy link
Owner Author

@prbaron i dont use watchers that much in controllers. But if it was in a controller , activate is a good place since that would create it right away

@prbaron
Copy link

prbaron commented Oct 26, 2014

Great, thanks !

@johnpapa
Copy link
Owner Author

may branch to another doc. not a style thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants