-
Notifications
You must be signed in to change notification settings - Fork 27.4k
refactor($compile): move setting of controller data to single location #13421
Conversation
LGTM Regarding BC: The code runs synchronously from where you removed the That said, I can come up with 2 (weird) cases that could break an app:
tl;dr Apart form some really twisted ways that one could have abused the |
DISCLAIMER: |
Do you think this is worth doing then? I'm fine either way. Could also change this to only move the $element/data stuff out of |
This does move the data call after the construction of the controller. Is that a breaking change (that has no tests)? If so I could do this a bit differently, but I like how
setupControllers
now creates the controllers which will make it easier to movesetupControllers
+getControllers
out of the per-elemenet compile closure...