0

I'm newer to AngularJs. First i was added one samplecontroller and run that it was working fine. Next i added the routing in my sample application it's not working . I dont know whether this is js dependency issue or somewhat.

My Html Code

Javascript File

2
  • Don't use the minified version of angular in development. And post the complete stack trace. And post your code as text, not as images. It's much harder for us to copy and paste your code to fix it in the answers when posted as image. Commented Oct 11, 2014 at 11:48
  • Okay @JBNizet I'll try and revert back it to u ... Thanks Commented Oct 11, 2014 at 11:50

1 Answer 1

2

You have added the script for angular-route, but you haven't loaded the ngRoute module in your app:

angular.module('demoApplication', ['ngRoute']);

This is well described in the documentation: https://docs.angularjs.org/api/ngRoute

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks @JB it's working after adding this... Actually i saw 60-ish minutes video through youtube they mentioned like that only ... I did't see this document.. anyway thanks
Always rely on the official, reference documentation. Youtube is great for lolcats videos.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.