I\'ve created a directive to wrap a jQuery plugin, and I pass a config object for the plugin from the controller to the directive. (works)
In the config object is a
The changeDate event bound to the input seems to be set up to fire outside of the Angular framework. To show the paragraph, call $scope.$apply() after setting dateChanged
to true. To hide the paragraph after the delay, you can use $apply()
again inside the function passed to setTimeout
, but you're likely to keep out of further trouble using Angular's $timeout() instead.
Fiddle