How would I render a dynamic definition list using AngularJS?

前端 未结 4 1685
南方客
南方客 2021-01-31 07:03

How would I render a dynamic definition list using AngularJS?

Example:

Data:

[
    {
        key: \'a\',
        value: \'x\'
    }, {
        ke         


        
4条回答
  •  深忆病人
    2021-01-31 07:32

    A new feature which allows ng-repeat-start/ng-repeat-end was added in Angular 1.2.

    With this feature, you can write your html like this:

    {{i.key}}
    {{i.value}}

    See this plnkr for a full working example.

提交回复
热议问题