Is It Possible To Pass An EJS Variable To An Angular Ng-repeat Filter?
I have a profile page that can render a user's name in plain text using <%= user.local.name %> - this queries the database using Mongoose. Is there a way I can pass that valu
Solution 1:
Wrap that value in quotes! (Else angular looks for $scope.Bob
, rather than just 'Bob'
)
<tr ng-repeat="x in users | filter:{'name':'<%= user.local.name %>'}:true">
Post a Comment for "Is It Possible To Pass An EJS Variable To An Angular Ng-repeat Filter?"