3 ms·
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
by davecap1 13y ago
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.