joeldow
joeldow

Reputation: 1066

Select ng-model not binding to ng-repeat filter

I need to build a simple state, city, location filter using angularjs. I just about have a working sample together, but my select won't bind to the output. Here is the code:

http://jsbin.com/kamenoficihu/7/edit

What am I doing wrong?

Upvotes: 0

Views: 476

Answers (1)

Artyom Pranovich
Artyom Pranovich

Reputation: 6962

Just replace this code:

<ul ng-repeat="(key,val) in stores | groupBy: 'State' | filter:selectedState">

on this:

<ul ng-repeat="(key,val) in stores | filter:selectedState | groupBy: 'State'">

Upvotes: 1

Related Questions