javascript - using function calls in html - bad or good?
问题 Using angular brings lot of weird style of code. For example I always thought that this <button onclick="myFunction()">Click me</button> style I should not ever use, except when I would be lazy and want quick and dirty code. And I never used such style in projects and also I even thinked that this is bad. Now when I see angular here is the example: <div enter="loadMoreTweets()">Roll over to load more tweets</div> which is from there http://www.thinkster.io/pick/IgQdYAAt9V/angularjs-directives