在加载 AngularStrap 模态控制器之前解决承诺
Resolve promises before loading AngularStrap modal controller
是否可以在打开模态时使用 Angular-Strap(http://mgcrea.github.io/angular-strap/#/modals) 中的解析部分?我正在寻找类似于 ui-router 的解析部分的工作方式的东西。
原来 Angular-Strap 2.3.0(https://github.com/mgcrea/angular-strap/commit/b272203f7704d2f66873d974beb20e4ac9fd4e7f) you can use resolve
as well as locals
, controller
, controllerAs
, template
, and templateUrl
. resolve
is still undocumented at this point. I created a working example here: https://jsfiddle.net/ryanray/pf2Ls800/
是否可以在打开模态时使用 Angular-Strap(http://mgcrea.github.io/angular-strap/#/modals) 中的解析部分?我正在寻找类似于 ui-router 的解析部分的工作方式的东西。
原来 Angular-Strap 2.3.0(https://github.com/mgcrea/angular-strap/commit/b272203f7704d2f66873d974beb20e4ac9fd4e7f) you can use resolve
as well as locals
, controller
, controllerAs
, template
, and templateUrl
. resolve
is still undocumented at this point. I created a working example here: https://jsfiddle.net/ryanray/pf2Ls800/