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

Why you use notification and namespaceJs? #11

Open
tom10271 opened this issue Feb 27, 2015 · 1 comment
Open

Why you use notification and namespaceJs? #11

tom10271 opened this issue Feb 27, 2015 · 1 comment

Comments

@tom10271
Copy link

Why you use notification but not rootScope.emit?

And the event name is the same as namespace you defined, why not just use a string directly? I tried and do not get auto complete in PHPStorm so what's the point?

@fesor
Copy link

fesor commented Jan 8, 2016

$scope events should be used only for angular internal stuff (for example $destroy event of scopes). You should always consider NOT to use $scope at all.

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

No branches or pull requests

2 participants