4 ms·
I guess this can clean logic flow in a controller, but here you end up with a bloated object instead. The biggest problem I see though is if you want to save a
by Bahamut 13y ago
I guess this can clean logic flow in a controller, but here you end up with a bloated object instead.
The biggest problem I see though is if you want to save a reference to the unregister functions of the $watch callbacks.
Otherwise, this is a cool idea, although it falls a little short.
- davej 13y ago> The biggest problem I see though is if you want to save a reference to the unregister functions of the $watch callbacks. This is a valid criticism, thank you. I will try to put together a nice solution for this. Of course you can always register/de-register watchers the normal way inside of the init method.
- Bahamut 13y agoYup, I'm aware - nice work on this so far!