lega911 / angular-light

Alight is a library for building interactive MVVM web interfaces/applications. (project is deprecated)
MIT License
274 stars 43 forks source link

[Suggestion] have ng1 like bindings #219

Closed sp90 closed 7 years ago

sp90 commented 7 years ago

Super interesting project, i do believe that having ng1 like bindings, for people to switch over easily from ng1

lega911 commented 7 years ago

ng1 like bindings

like ng-click, ng-disabled ?

sp90 commented 7 years ago

Yes 👍 , is there a reason why this isn't the case?

lega911 commented 7 years ago

It was in previouse versions 0.10, 0.8 ..., now it is possible to build with option "compatibility".

In last version instead of bunch of directives like al-click, al-mousemove..., we have one directive for any event: al-on, and you can choose any event: al-on.click, al-on.mousemove, al-on.mycustomevent ..., or short version (alise) @click, @mousemove, also you can attach throttle, debounce and other modifiers http://angular-light.readthedocs.io/en/latest/events.html