Skip to content

Instantly share code, notes, and snippets.

@ivanursul
Last active August 29, 2015 14:12
Show Gist options
  • Select an option

  • Save ivanursul/535a65510a0d4e135f7d to your computer and use it in GitHub Desktop.

Select an option

Save ivanursul/535a65510a0d4e135f7d to your computer and use it in GitHub Desktop.
'use strict';
/**
* @ngdoc overview
* @name angularjsGettingStartedApp
* @description
* # angularjsGettingStartedApp
*
* Main module of the application.
*/
angular
.module('angularjsGettingStartedApp', [
'ngAnimate',
'ngCookies',
'ngResource',
'ngRoute',
'ngSanitize',
'ngTouch',
'ui.bootstrap'
])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
controller: 'MainCtrl'
})
.when('/about', {
templateUrl: 'views/about.html',
controller: 'AboutCtrl'
})
.otherwise({
redirectTo: '/'
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment