Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // configure our routes
- spApp.config(function($routeProvider,$httpProvider) {
- $routeProvider
- .when('/', {
- templateUrl : 'pages/home.html',
- controller : 'mainController'
- })
- // route for the home page
- .when('/home', {
- templateUrl : 'pages/home.html',
- controller : 'mainController'
- })
- // route for the about page
- .when('/account', {
- templateUrl : 'pages/account.html',
- controller : 'accountController'
- })
- // route for the about page
- .when('/form', {
- templateUrl : 'pages/form.html',
- controller : 'formController'
- })
- // route for the contact page
- .when('/contact', {
- templateUrl : 'pages/contact.html',
- controller : 'contactController'
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement