AngularJS - placeholder for empty result from filter

前端 未结 3 1008
清歌不尽
清歌不尽 2020-11-29 16:35

I want to have a place holder, e.g. when filter result returns empty. Could anyone please help? I don\'t even know where to start...

<

3条回答
  •  野性不改
    2020-11-29 17:02

    A tweak on the approach that only requires you to specify the filter once:

      
  • {{bar.name}}

Nothing here!

Fiddle

提交回复
热议问题