Skip to content

Comment on Classy: Cleaner class-based controllers for AngularJSparent

Comments

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.

Yup, I'm aware - nice work on this so far!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.