Skip to content

Instantly share code, notes, and snippets.

@ngunhaSO
Created February 20, 2017 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngunhaSO/ebc6a3eaf87f39c1bb3ebdf47569f93e to your computer and use it in GitHub Desktop.
Save ngunhaSO/ebc6a3eaf87f39c1bb3ebdf47569f93e to your computer and use it in GitHub Desktop.
(function () {
'use strict';
angular.module('app')
.config(['$stateProvider', '$urlRouterProvider',
function ($stateProvider, $urlRouterProvider) {
$stateProvider
.state('question', {
url: '/',
templateUrl: 'app/question/questionTemplate.html',
controller: 'questionController as vm'
})
.state('result', {
url: '/result',
controller: 'resultController as vm',
templateUrl: 'app/result/resultTemplate.html'
})
$urlRouterProvider.otherwise('/');
}]);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment