2

Say I have a model like:

$scope.types = [
        {
            name: 'X1500',
            value: 'X1500',
            tags: ['GRE','GRB']
        },
        {
            name: 'VSH',
            value: 'VSH',
            tags: ['GRE','GRB']
        }
]

And I want to filter all types that has GRE in their tags. Something like:

"type.value as type.name for type in types | filter:types.tags='GRE'"

How can I do this ?

1 Answer 1

1

Apparently, the filter mentioned in the question does work :)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.