Angular.js dynamic filters

0

How can I make a variable to be transformed into a value like in the example: ng-repeat="op in opportunityUnica | filter: ReferenceCode = 'VARIABLE'"?

    
asked by anonymous 15.03.2017 / 16:31

1 answer

0

You can filter using ng-if in the element itself, such as

  <div ng-repeat="op in oportunidadeUnica" ng-if="op.ReferenceCode == filterCode">
     {{op.name}}
  </div>

link

    
15.03.2017 / 18:24