Advertisement
Guest User

Untitled

a guest
Apr 7th, 2013
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. 'use strict';
  2.  
  3.  
  4. // Declare app level module which depends on filters, and services
  5. angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']).
  6. config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
  7. $routeProvider.when('/view1', {templateUrl: 'partials/partial1', controller: MyCtrl1});
  8. $routeProvider.when('/view2', {templateUrl: 'partials/partial2', controller: MyCtrl2});
  9. $routeProvider.otherwise({redirectTo: '/index.html'});
  10. $locationProvider.html5Mode(true);
  11. }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement