angularjs - Angular JS - Route provider not working -
Help me with this plunk
Go to the plunk and see it pls < / Code>
Getting blank screen while using routing, but its work is not correct
two things:
-
You are announcing the main app module twice - once in app.js and once In the controller app.js Before a load, which adds the router as a dependency, but after that you are doing this in your controller:
var app = angular .module ("gitbewar", []);
Which overwrites your previous one, redefines the githubviewer module. To view a module, just leave the second parameter (array of dependency). So change that line to your controller instead:
var app = angular Module ("Gitbuvert"); - You have the wrong module name for the router is the correct name
ngRoute :
Performance:
Comments
Post a Comment