Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = angular.module('x', []);
- .
- .
- .
- x.config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
- $routeProvider.
- when(
- '/', {templateUrl: '/static/partials/index.html'}).
- when(
- '/newpage',
- {
- templateUrl: '/static/partials/newpage.html',
- controller: "ControllerName"
- });
- $locationProvider.html5Mode(true);
- }]);
Add Comment
Please, Sign In to add comment