-
Notifications
You must be signed in to change notification settings - Fork 6.7k
test(modal): Add test for controllerAs
syntax
#2091
Conversation
@gsklee Nice PR and with proper test! LGTM but what about supporting a syntax in the controller attribute: |
@bekos The available options for |
@gsklee My suggestion was to avoid the extra confusion, but I think you are right, forget about it :-) |
@gsklee thnx for the PR, what you are saying makes sense, but we've got the support for the controller as syntax already. We are using the same syntax as the We are not trying to mimick the directive definition object, but rather a route definition one (modal are a lot like routes if you think about it). While it is true that the route definition object has the I don't know, I'm not sooooo keen on adding more bytes for the case that we already do support. WDYT? |
@pkozlowski-opensource it was ringing some bells but I couldn't remember exactly what :-) Thanks for clarifying this. Probably we should add this to the docs and merge a similar to @gsklee's, test case. |
@pkozlowski-opensource @bekos Thanks for the clarification, in that case I'll revert the code change but leave the (modified) test case and doc change. |
@gsklee 👍 |
controllerAs
supportcontrollerAs
syntax
PR updated ;-) |
Thnx! |
Let's add this since it's kinda the recommended way to do things since v1.1.5.