Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 1
    add the ngRoute to the controller as well. Possible link solution Commented Aug 21, 2018 at 9:12
  • @ ZombieChowder tx for response and I have tried this but same error Commented Aug 21, 2018 at 9:14
  • 1
    @Rushidave angular.js and angular-route.js files should have matching versions. Change 1.2.0rc1 to 1.6.9 Commented Aug 21, 2018 at 9:17
  • 1
    @Rushidave you should be more specific. Your error says myApp, whereas your module is named myapp. You don't pass a controller function in here: app.controller('myCtrl', ['$scope']);. And for better error logs you can change .min.js to .js Commented Aug 21, 2018 at 9:23
  • 1
    inconsistencies between modules, controllers and js includes is the source if your issue. Just double check everything and you should resolve this issue easily. Commented Aug 21, 2018 at 9:30