0

guys in the below code sample I used three controllers in the onlinetest.html template, and here I define only one controller which work fine some instance but view page contains 3 controllers. code for another controller is breaking now how I define other two controllers in that can anyone define?.

 }).when("/onlinetest",{
            templateUrl:"onlinetest.html",
            controller:"quizCtrl"
        }).otherwise({
            template:"Error Page , No Match Found"
            ,redirectTo:"/"});
    });

1 Answers1

0

This is a duplicate question. You can found right answer here

Can I pass multiple controllers in $routeProvider.when() in angularJS?

Community
  • 1
  • 1