AngularJS - using ng-show within ng-repeat

前端 未结 1 1169
猫巷女王i
猫巷女王i 2021-02-05 04:38

I\'m having an issue using the ng-show directive within an ng-repeat block.

The boolean value does not seem to be getting passe

相关标签:
1条回答
  • 2021-02-05 04:56

    In your ng-show you don't need { } try this:

    <h4 ng-show="actress.name == 'Scarlett'">Was in Avengers! <span class="note">
    

    See this fiddle for a working sample of an ng-show within an ng-repeat.

    0 讨论(0)
提交回复
热议问题