Files
DefinitelyTyped/types/angular-ui-router-uib-modal/angular-ui-router-uib-modal-tests.ts
2017-03-24 14:27:52 -07:00

29 lines
498 B
TypeScript

angular.module("test", [
"ui.bootstrap",
"ui.router",
"ui.router.default"
])
.config(function($stateProvider: angular.ui.IStateProvider) {
$stateProvider
.state('contacts', {
// no modal
resolve: {
a: function() {
return "a";
},
b: function() {
return ["a", "b"];
}
}
})
.state('contacts.contact', {
// boolean modal
modal: true
})
.state('contacts.contact.edit', {
// string[] modal
modal: ["a", "b"]
})
;
});