Created
March 24, 2015 17:48
-
-
Save felixzapata/912151a47e0c3d4f402f to your computer and use it in GitHub Desktop.
How to trigger ng-change in directive test in AngularJS
This file contains 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
// http://stackoverflow.com/questions/17626604/how-to-trigger-ng-change-in-directive-test-in-angularjs | |
changeInputValueTo = function(value) { | |
inputElm.val(value); | |
browserTrigger(inputElm, $sniffer.hasEvent('input') ? 'input' : 'change'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment