Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter button does not work with ng-repeat #3

Open
dishui opened this issue Jul 1, 2014 · 2 comments
Open

filter button does not work with ng-repeat #3

dishui opened this issue Jul 1, 2014 · 2 comments

Comments

@dishui
Copy link

dishui commented Jul 1, 2014

I am using your library in one of my project, let me first thank you for creating this library.

I am running into an issue though:
when trying to create filter buttons with ng-repeat, it does not work.

Then, I decided to try using your demo.html and here is the code:

Filter using ng-repeats
<div class="btn-group" isotope-filter isotope-filter-event="filter-elements" isotope-filter-group="metals">
    <button isotope-filter-by="*" class="btn btn-default active">show all</button>

    <button ng-repeat="type in types track by $index" isotope-filter-by=".{{types[$index]}}" class="btn btn-default">{{types[$index]}}</button>
    
</div>

Wonder if you have any insight about this?

@dv336699
Copy link
Owner

dv336699 commented Jul 2, 2014

hm, I haven't tested that yet, if you can create a plnkr I would be glad to take a look.
Thanks

@JohnnyEnc
Copy link

JohnnyEnc commented Sep 23, 2016

Im facing the same issue, does this have a solution yet?

this is my code:

    <div class="btn-group" isotope-filter isotope-filter-event="filter-elements" >
        <button isotope-filter-by=".{{category.category}}"  ng-repeat="category in slides"  class="btn btn-default">{{category.category}}</button> 
    </div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants