Bootstrap navbar with angularjs

angularjs, twitter-bootstrap

Solution

There are couple of issues of you code. Please compare my fix with your version. (Plnkr)

- You should use config() to register the routing rules.

- You need put `ng-view` in the html page and make sure it is inside the scope of `NavCtrl`

- The controller name in the routing rules should be a string. You missed the quotes.

- You should use ng-click to trigger to load the page rather than href. Keep in mind, the routing is in Angularjs's scope not html.

Problem

I am trying to get a bootstrap navbar working with angularjs. I would like to have the navbar in the index.html and the rest of the content for each tab in the navbar in its own respective partial. I am having trouble getting the partials to show up. http://plnkr.co/edit/sKJU4nrNYV56uJQG4Lvw?p=preview

Original source