Skip to content

Instantly share code, notes, and snippets.

/gist:7449a432746ce18fbc7e Secret
Created Jan 14, 2016

Embed
What would you like to do?
.config(['$stateProvider', '$urlRouterProvider',
function ($stateProvider, $urlRouterProvider) {
$urlRouterProvider
.otherwise('/');
$stateProvider
.state("home", {
url: "/",
templateUrl: 'home.html'
})
.state("cases", {
url: "/cases",
templateUrl: 'cases.html'
})
.state('cases.single', {
url: '/{caseId}',
views: {
'': {
templateUrl: 'case-single.html',
controller: ['$scope', '$stateParams',
function ( $scope, $stateParams) {
console.log('test');
}]
}
}
})
}
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.