refactor($compile): move setting of controller data to single location#13421
refactor($compile): move setting of controller data to single location#13421jbedard wants to merge 1 commit intoangular:masterfrom
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
setupControllersnow creates the controllers which will make it easier to movesetupControllers+getControllersout of the per-elemenet compile closure...