Skip to content

Instantly share code, notes, and snippets.

@sethburtonhall sethburtonhall/untitled Secret
Created Dec 10, 2014

Embed
What would you like to do?
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>
@sethburtonhall

This comment has been minimized.

Copy link
Owner Author

sethburtonhall commented Dec 10, 2014

the ng-model within ng-repeat does not add active class to delete-user. nor does it disable select.

This is a scope issue, but I am having trouble figuring it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.