阅读背景:

AngularJS $ modalInstance - 我可以在一个控制器中执行此操作吗?

来源:互联网 

I've spent some time having a play with the AngularJS Bootstrap popup, and for intents it's working great, but what i'd like to do is bind it, and it's dependant script to the same controller, what i can't get working is the close button now though. If i create a NEW controller, and inject $modalInstance it works great and i can wireup the close button without any issues at all, but i don't want a second controller, it seems to be over complication: i want all my controller logic in the formController really.I've spent some time having a play with the Ang




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: