Some things to be aware of using ANGULARJS

Source: Internet
Author: User
Tags http post

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. 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: []});

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.