I'm trying to set up routing with angular and angularfire but am having trouble.
var app = angular.module('sampleApp', ['ngRoute', 'firebase', 'ui.bootstrap']);
app.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'index.html',
controller: 'SampleCtrl'
})
.when('/login', {
templateUrl: 'views/login.html',
controller: 'LoginCtrl'
})
.otherwise({
redirectTo: '/'
});
});
app.controller('LoginCtrl', function($scope, $firebase){
console.log('LoginCtrl')
})
when I try to hit localhost:8000/login I get the following error message
Error code explanation: 404 = Nothing matches the given URI.
How can I set up simple routes with ngRoute and AngularFire?