I want to know is how to use multiple controllers for a single page application. I have tried to figure it out and I\'ve found questions very similar to mine, but there is j
What is the problem? To use multiple controllers, just use multiple ngController directives:
You will need to have the controllers available in your application module, as usual.
The most basic way to do it could be as simple as declaring the controller functions like this:
function widgetController($scope) {
// stuff here
}
function menuController($scope) {
// stuff here
}