[NG] ng-bind & {{}}的 差異


在AngularJS中,使用ng-bind 和 {{}} 都可以顯示controller的資料

例如

{{main.test}}

雖然結果一樣,但利用ng-bind的效能較好,所以要習慣使用ng-bind而非{{}}。

留言