对于一般的使用者来说,AngularJS的ng-app都是手动绑定到某个dom元素。但是在一些应用中,这样就显得很不方便了。
绑定初始化
通过绑定来进行angular的初始化,会把js代码侵入到html中,但是对于新手使用来说,还是足够了!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
[removed][removed]
</hea