Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.config(function($routeProvider, $locationProvider) {
- $routeProvider
- .when('/login', {
- templateUrl: 'templates/login.html',
- controller: 'LoginController',
- })
- .when('/index', {
- templateUrl: 'templates/glowna.html',
- controller: 'IndexController',
- })
- .when('/roomGroupAdd', {
- templateUrl: 'templates/grupy.html',
- controller: 'roomGroupAddController',
- })
- .when('/rezerwacje', {
- templateUrl: 'templates/rezerwacje.html',
- controller: 'ReservationController',
- })
- .otherwise({
- redirectTo: '/login'
- });
- $locationProvider.html5Mode(true);
- });
Advertisement
Add Comment
Please, Sign In to add comment