Slide 26
Slide 26 text
ROUTING
app.config ($routeProvider) ->
$routeProvider.
when('/', {controller: IndexCtrl,
templateUrl: 'index.html'}).
when('/edit/:id', {controller: EditCtrl,
templateUrl: 'edit.html'}).
when('/new', {controller: NewCtrl,
templateUrl: 'new.html'}).
otherwise({redirectTo:'/'})