1.官方提倡的,关闭debug,$compileProvider
myApp.config(function ($compileProvider) {
$compileProvider.debugInfoEnabled(false);
});
2.使用一次绑定表达式即{{::yourModel}}
3.减少watcher数量
4.在无限滚动加载中避免使用ng-repeat
5.使用性能测试的小工具去挖掘你的angular性能问题,我们可以使用简单的console.time()也可以借助开发者工具以及Batarang
console.time("TimerName");
//your code
console.timeEnd("TimerName");