Skip to content

Instantly share code, notes, and snippets.

@chandermani
Created February 2, 2014 09:41
Show Gist options
  • Select an option

  • Save chandermani/8765431 to your computer and use it in GitHub Desktop.

Select an option

Save chandermani/8765431 to your computer and use it in GitHub Desktop.
element.bind('blur', function () { //some third party component directive
scope.$apply(function(){
$scope.model='someData'; //scope updates have to be done inside the $apply callback
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment