mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-07 23:37:35 +08:00
29 lines
498 B
TypeScript
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"]
|
|
})
|
|
;
|
|
});
|