Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- /**
- * @ngdoc overview
- * @name exampleClientApp
- * @description
- * # exampleClientApp
- *
- * Main module of the application.
- */
- angular
- .module('exampleClientApp', [
- 'ngAnimate',
- 'ngCookies',
- 'ngResource',
- 'ngRoute',
- 'ngSanitize',
- 'ngTouch',
- 'Rest'
- ])
- .config(function ($routeProvider) {
- $routeProvider
- .when('/', {
- templateUrl: 'views/main.html',
- controller: 'UserController',
- controllerAs: 'userCtrl'
- })
- .when('/about', {
- templateUrl: 'views/about.html',
- controller: 'AboutCtrl',
- controllerAs: 'about'
- })
- .otherwise({
- redirectTo: '/'
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement