Write in front--really do not have the time and energy carefully summed up, first put here, and then refinement ~~~~~~~~
have been playing Angularjs recently, have to say, compared to knockout,angularjs this MVVM framework is more powerful and more complex, a variety of tutorials online everywhere, but the real use of the project will encounter a variety of pits.
Here's an article think in Angularjs is mainly about Angularjs thought and so on, for those of us who have used jquery for a number of years, some ideas are different from those of angularjs, but there may be some aspects that are a little too idealistic, or if you want to do think In ANGULARJS requires a thorough understanding of angularjs, personal insights.
On the one hand, many things are not understood very thoroughly when they are used, on the other hand, it is difficult to make everything according to Angularjs in the existing project. While enjoying the convenience of ANGULARJS data binding & interaction, we also need to continue to use the UserControl, plug-ins in the project, then we will encounter various problems in this process, and now summarize the following:
1. And jquery compatibility issues, Angularjs comes with jqlite, found in the use of the process, If you use the jquery-1.6.4 version in your project, you will get an error if you put the Angularjs reference behind jquery, but Jquery-1.8 does not have the problem after that.
2. In conjunction with Jquery-ui-dialog, the project will often use a variety of modal boxes, in fact, the best way to personally feel is to use a set of ANGULARJS written components/plug-ins, UI Bootstrap is currently I have seen the best written. But this is the ideal state, but the project has been accustomed to the use of Jquery-ui-dialog, then the use of the process will encounter problems, the problem described may be more cumbersome, as follows:
Suppose the page has a product list, click on the product name to show the corresponding product details:
-
-
1.angularjs vs jquery 1.6.4
2.jquery UI dialog out of controller
3. Loading timing Issues
4. $timeout to be clear when you come back 。。 Select init
bind trigger third-party tune $scope internal method http://www.html-js.com/article/ Using-angular-to-develop-web-applications-use-angularjs-to-create-a-pre-input-plugins
5.date: ' Yyyy-MM-dd HH: Mm:ss ' formatted truncation
6.IE (9) Cache
7.IE8 compatibility issue (custom label not supported) Http://rritw.com/a/bianchengyuyan/JS/2014/0405/488748.html: < !--[If LTE IE 8]>
<script>
document.createelement (' radio-list ');
</script>
<![ Endif]-->
8. Blinking {{}}->ng-bind
9.//# sourcemappingurl=angular.min.js.map
. $http Post
11. Track by $index
12. Custom cannot use ng-prefix otherwise error: [$compile: Ctreq]
13.ng-repeat The original list does not exist add no reaction see autolist CurrTopicModel.TopicCategories.push ({Tags: []});