Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You don't actually ever need to explicitly specify the controller in Angular views. Usually in angular apps, the controller is specified by the routing provider (in JS), along with the view (template path).

In small examples (ie when not using angular routes) it is easier to explicitly specify the controller.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: