标签: angularjs expression
<head> <title></title> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.5/angular.min.js"></script> </head> <body> {{2+2}}
为什么{{2 + 2}}表达式不会被评估为4? 我错过了依赖吗?
答案 0 :(得分:2)
将ng-app指令添加到您的身体:
ng-app
<body ng-app>
JSFIDDLE