AngularJS ng-repeat handle empty list case

后端 未结 10 2278
隐瞒了意图╮
隐瞒了意图╮ 2020-11-30 16:47

I thought this would be a very common thing, but I couldn\'t find how to handle it in AngularJS. Let\'s say I have a list of events and want to output them with AngularJS, t

10条回答
  •  借酒劲吻你
    2020-11-30 17:24

    You can use as keyword to refer a collection under a ng-repeat element:

    {{task.id}} {{task.description}}
    no results

提交回复
热议问题