javascript - Jquery ui resizable as Angular Directive -


i'm trying implement jquery ui resizable plugin angular directive. it's successful. when set explicitly handler resizable plugin error whenever click on dom item.

uncaught typeerror: cannot read property 'ownerdocument' of undefined 

here angular directive;

app.directive('resizable', function() {     return {         restrict: 'a',         link: function(scope, element, attrs) {             $(element).resizable({                 handles: { 's' : '.handle' }             });         }     }; }); 

html;

<div class="row list-box" resizable> <div class="handle ui-resizable-handle ui-resizable-n fa fa-ellipsis-h"></div> 

also what's best practice using jquery ui angularjs?

thanks.

i have found solution. problem handler div not placed in resizable div. after placing correctly worked expected.

<div class="row list-box" resizable>     ...     <div class="handle ui-resizable-handle ui-resizable-n fa fa-ellipsis-h"></div> </div> 

Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -