I had a problem running jQuery resizefor an event spanafter I changed the text within the range.
I apply event handlers to an element spanusing the AngularJS directive:
angular.module("test.directives", [])
.directive("trackSize", ["$parse", function($parse) {
return function(scope, element, attrs) {
function callback() {
var size = { w: element.width(), h: element.height() };
scope[attrs.trackSize].call(scope, size);
}
element.on("resize", function() {
console.log("resize");
scope.$apply(callback);
});
callback();
};
}]);
but I donβt see the fire of the callback when the text inside spanchanges. If it matters: the text is modified using the built-in AngularJS expression.
My actual (complete) code snippet can be seen on jsFiddle at: http://jsfiddle.net/KkctU/13/
source
share