Created
February 20, 2017 02:23
-
-
Save ngunhaSO/ebc6a3eaf87f39c1bb3ebdf47569f93e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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