Created
April 25, 2016 19:46
-
-
Save npfitz/e4b59fefe5015a4cf5b4e1100cfc4392 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var foundItem = _.findWhere(scope.items, {content: scope.currentText}); | |
if(foundItem){ | |
scope.ngModel = foundItem.value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment