Skip to content

Do not use stand-alone controllers #4

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

Open
nicklasb opened this issue Jun 26, 2015 · 2 comments
Open

Do not use stand-alone controllers #4

nicklasb opened this issue Jun 26, 2015 · 2 comments
Labels

Comments

@nicklasb
Copy link
Member

When programming using Angular, it feels natural to use ng-controller, and looking around, there are a huge number of projects that use it to a huge extent. (myself included)

However, ng-controller is going away in Angular2, and second, is it arguably bad design.

So do not use it.

@nicklasb nicklasb changed the title Do not use controllers Do not use stand-alone controllers Jun 26, 2015
@Dervisevic
Copy link

👍

@nicklasb
Copy link
Member Author

Instead, use directives and specify the controllers there. And preferrably, use isolate scopes.

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

No branches or pull requests

2 participants