AngularJS: Is ng-click “a good practice”? Why is there no ng-{event} in AngularJS?
问题 I just started to learn AngularJS and struggle with some concepts of AngularJS. It would be great if somebody could explain me some points... I understand that ng-click is technically not the same as onclick (see here), but both are placed in the markup. I thought that would be a "bad practice"? Why is this one of the core concepts of AngularJS, if most people say this is "bad"? I thought it would be better to select the DOM element from JavaScript and not to place logic in the markup. If ng