Skip to content

Instantly share code, notes, and snippets.

@DrMabuse23
Created September 18, 2015 07:10
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 DrMabuse23/d51e5eb49e025a6c1ff4 to your computer and use it in GitHub Desktop.
Save DrMabuse23/d51e5eb49e025a6c1ff4 to your computer and use it in GitHub Desktop.
'use strict';
angular.module('dilemma', [])
.config(function ($stateProvider) {
$stateProvider
.state('app.dilemma', {
url: '/dilemma',
views:{
pageContent: {
templateUrl: 'dilemma/templates/index.html',
controller: 'DilemmaCtrl as dilemmaC'
}
}
})
.state('app.dilemma-detail', {
url: '/dilemma/detail/:category/:index',
views:{
pageContent: {
templateUrl: 'dilemma/templates/detail.html',
controller: 'DilemmaDetailCtrl as dilemmaDetailC'
}
}
})
.state('app.dilemma-detail-slider', {
url: '/dilemma/detail-slider/:category/:question/:index',
views:{
pageContent: {
templateUrl: 'dilemma/templates/detail-slider.html',
controller: 'DilemmaDetailSliderCtrl as diSliderC'
}
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment