2 ms·
AngularJS does this super well :)
by pebb 14y ago
AngularJS does this super well :)
- stephen 14y agoI generally agree, although for my taste I don't like how Angular allows declaring complex conditions inside the view as inline expressions. Admittedly, it is succinct, and I'm being pedantic, but it seems like keeping the expressions in the controllers and just exposing them to the view as single, opaque values would be better separation of concerns. (E.g. instead of "ng:show=a && b && c", you would only be allowed to do "ng:show=nowInStateFoo" and in the controller you'd define nowInStateFoo=a && b && c".) Hm. I suppose you could actually build Angular applications this way, by opting in to the extra ceremony.