Use Angularjs time is not very long, understanding is not thorough. But for those who have just started learning, they can help.
1. callback function.
。
。。。 --and remember that it's asynchronous, and there's an inexplicable problem remember to check
2. Memory leaks.
。。。。 --a very wide variety of possibilities, and this remains to be seen. The situation I encountered was to write a function with a return value in the Ng-repeat, and then he kept calling this function, causing the memory leak, should write a ng-init= "function" before Ng-repeat, Then put the return value into a scope scope variable, ng-repeat= "This variable", so it is conquered.
3. $http:
。。。。
---> is an asynchronous transfer via Ajax after putting the results into $scope, he automatically triggers a $apply () dirty check. And with $.ajax you need to manually trigger.
Common errors in Angularjs