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:

  1. 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");   
    1. You have the wrong module name for the router is the correct name ngRoute :

      Performance:



Comments

Popular posts from this blog

Out of index C/C++ -

algorithm - Graph cut with python: How to set up the graph correctly? -

objective c - how Set autolayout for multiple dynamic buttons and labells in iOS? -