I need to make ng-model available outside of ng-repeat
| <ul> | |
| <li class="delete-user" ng-class="{'active': isChecked}"><i class="fa fa-trash-o"></i> Delete</li> | |
| <li> | |
| <select ng-disabled="!isChecked"> | |
| <option>...</option> | |
| </select> | |
| </li> | |
| </ul> | |
| <ul class="list-view user-list" ng-if="users.length"> | |
| <li ng-repeat="user in users | orderBy:'name'" class="list-view__item"> | |
| <input type="checkbox" ng-model="isChecked"> | |
| </li> | |
| </ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
sethburtonhall commentedDec 10, 2014
the
ng-modelwithinng-repeatdoes not add active class todelete-user. nor does it disableselect.This is a scope issue, but I am having trouble figuring it out.