angularjs-book icon indicating copy to clipboard operation
angularjs-book copied to clipboard

Chapter -2 : Changing Views with Routes and $location

Open Debananda opened this issue 10 years ago • 4 comments

The example is not working with Angular 1.2.15. Giving "Uncaught object" at line :78 in angularjs.

Debananda avatar May 24 '14 14:05 Debananda

I have same problem and add angular-route.js to my project but still doesn't work. can you help me ?

hamidhadi avatar Jul 17 '14 21:07 hamidhadi

To update the routing, you need to :

  • Include the angular-route.js file (after angular.js) in your index.html
  • Add the 'ngRoute' module as a dependency to your main module

Then it should work

shyamseshadri avatar Jul 18 '14 00:07 shyamseshadri

It doesn't work :(

hamidhadi avatar Jul 18 '14 11:07 hamidhadi

it works js: http://pastebin.com/TmyK8DRu html: http://pastebin.com/qiZRyqaU

smasztarowski avatar Sep 13 '15 12:09 smasztarowski