Bring you closer to AngularJS-experience command instances

Source: Internet
Author: User

The first example of the accordion command is the accordion effect command: image online instance address: the pure HTML source code of the accordion command does not use AngularJS is as follows: copy the Code <div class = "accordion" id = "accordion2"> <div class = "accordion-group"> <div class = "accordion-heading"> <a class =" accordion-toggle "data-toggle =" collapse "data-parent =" # accordion2 "href =" # collapseOne "> Collapsible Group Item #1 </a> </div> <div id = "collapseOne" class = "accordion-body collapse in"> <div class = "accordion-inner"> Anim pariatur cliche... </div> <div class = "accordion-group"> <div class = "accordion-heading"> <a class = "accordion-toggle "data-toggle =" collapse "data-parent =" # accordion2 "href =" # collapseTwo "> Collapsible Group Item #2 </a> </div> <div id = "collapseTwo" class = "accordion-body collapse"> <div class = "accordion-inner"> Anim pariatur cliche... </div> copy the above pure HTML source code. Organ effect, but it is only a few marks, contains a large number of links and IDs, is not conducive to maintenance. Using AngularJS custom commands combined with the following HTML source code can also achieve the expected results: copy the Code <body ng-app = "btst">

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.