For some reason, I can't seem to route to the add
screen. What am I doing wrong? Here's my app.js
var moviesApp = angular.module('moviesApp', ['ngRoute']);
moviesApp.config(function($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'partials/home.html',
controller: 'MoviesController'
})
.when('/add', {
templateUrl: 'partials/add.html',
controller: 'MoviesController'
})
.when('/edit', {
templateUrl: 'partials/edit.html',
controller: 'MoviesController'
});
});
Here's the anchor tag:
<a href="#add">Add Movie</a>
Which is contained within my home.html
template which is a part of index.html
.
The app doesn't crash...it just doesn't do anything.
Any thoughts on what I'm doing wrong?