Skip to content

Instantly share code, notes, and snippets.

@garciadanny
Created November 10, 2014 03:33
Show Gist options
  • Select an option

  • Save garciadanny/1b884e4bf15e40408bb2 to your computer and use it in GitHub Desktop.

Select an option

Save garciadanny/1b884e4bf15e40408bb2 to your computer and use it in GitHub Desktop.

Revisions

  1. garciadanny revised this gist Nov 10, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions select-ng-model-2.html
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    <select ng-model="status" ng-options="profile.status as profile.status for profile in profiles | unique:'status'" >
    <option value="">All</option>
    <option value="">All</option>
    </select>

    <select ng-model="city" ng-options="profile.city as profile.city for profile in profiles | unique:'city'" >
    <option value="">All</option>
    <option value="">All</option>
    </select>
  2. garciadanny created this gist Nov 10, 2014.
    7 changes: 7 additions & 0 deletions select-ng-model-2.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    <select ng-model="status" ng-options="profile.status as profile.status for profile in profiles | unique:'status'" >
    <option value="">All</option>
    </select>

    <select ng-model="city" ng-options="profile.city as profile.city for profile in profiles | unique:'city'" >
    <option value="">All</option>
    </select>