1
<div ng-repeat="dat in details | filter : { dat.product_name : textname}">
    <hr/>
    <p style="color:#4C97C8;" class="lead"><strong>{{dat.product_name}}</strong></p>                                
</div>

is i am doing any mistake?

1
  • Yes the syntax is filter: { product_name: textname }. Leave out dat in the filter Commented Dec 20, 2016 at 13:14

1 Answer 1

2

Just remove the .dat prefix in filter: {dat.product_name : textname}.


<div ng-repeat="dat in details | filter: {product_name : textname}">
    <hr/>
    <p style="color:#4C97C8;" class="lead"><strong>{{dat.product_name}}</strong></p>
    <ul>
        <li><b>Product:</b><span> {{dat.product_name}}</span></li>
        <li><b>Product Manager:</b><span> {{dat.first_name}}{{dat.last_name}}</span></li>
        <li><b>Product Line:</b><span> {{dat.productline_name}}</span></li>
    </ul>                               
</div>
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.