AngularJS ng-repeat handle empty list case

后端 未结 10 2298
隐瞒了意图╮
隐瞒了意图╮ 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:11

    You can use ngShow.

  • No events
  • See example.

    Or you can use ngHide

  • No events
  • See example.

    For object you can test Object.keys.

提交回复
热议问题