1234567891011121314 |
- app.config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) {
- $locationProvider.hashPrefix('');
- $routeProvider
- .when('/', {
- templateUrl: 'app/views/home.template.html',
- controller: 'HomeController'
- })
- .when('/reg', {
- templateUrl: 'app/views/registration.template.html',
- controller: 'RegistrationController'
- })
- .otherwise('/');
- }]);
|