Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- // Declare app level module which depends on filters, and services
- angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']).
- config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
- $routeProvider.when('/view1', {templateUrl: 'partials/partial1', controller: MyCtrl1});
- $routeProvider.when('/view2', {templateUrl: 'partials/partial2', controller: MyCtrl2});
- $routeProvider.otherwise({redirectTo: '/index.html'});
- $locationProvider.html5Mode(true);
- }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement