How would I render a dynamic definition list using AngularJS?

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

How would I render a dynamic definition list using AngularJS?

Example:

Data:

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


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-31 07:37

    This answer didn't seem to work for me in Angular v1.2.7 so I wanted to post a slight variation that worked well for me:

    {{key}}
    {{value}}

提交回复
热议问题