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

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -