About Angularjs's ng-repeat directive

Source: Internet
Author: User

(if there is said wrong, welcome to advise, more welcome to communicate with everyone.) )

About Angularjs's ng-repeat instruction, presumably every beginner who learns Angularjs has a very good image. I also summarize the experience when I use Ng-repeat, ng-repeat he can only loop arrays and objects, so when in the project, if you encounter ng-repeat loop data, you might want to check whether the data source is an array, etc.

Next, loop inline, loop inline is ng-repeat some JSON array of some data, but also need to loop its sub-data

For example, the JSON format is as follows:

We need to loop out the name and the things in city, and we can write this.

At that time in the Internet search this information is very few, today also posted my method, thank you

About Angularjs's ng-repeat directive

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.