davej / angular-classy

Cleaner class-based controllers with Angular 1
http://davej.github.io/angular-classy/
813 stars 27 forks source link

Add support to bind watchers to scope events. #11

Closed greenboxal closed 10 years ago

greenboxal commented 10 years ago

I think that this is pretty simple, any thoughts about it?

davej commented 10 years ago

My only issue with this is that semantically events and watchers are quite different.

greenboxal commented 10 years ago

I agree with that, but I thought that it would be nice as syntactically they are equal.

davej commented 10 years ago

My OCD side just wont allow it :)

Have a look at #6, It will be possible to create Classy plugins as third-party libraries that can do this kind of stuff. Then over time the popular libs can be brought into core if it makes sense.