0

I want to integrating jquery UI resizable in angular.js but unable to do so, I am trying to resize the div with resize handle in angular.js but I am fail to do so. Any help will be great. I have already created resize directive and included jquery Ui js for resizable but its not working.

app.directive('resize', function() {
    return {
        // A = attribute, E = Element, C = Class and M = HTML Comment
        restrict:'E',
        //The link function is responsible for registering DOM listeners as well as updating the DOM.
        link: function(scope, element, attrs) {
         element.resizable();
        }
    };
});

Thanks in advance !!

1 Answer 1

1

I think the element object is a dom object. Wrap it in jquery $ and you may get the resizable() method

$(element).resizable();

Also make sure jquery ui scripts are loaded before angularjs starts bootstrapping.

Sign up to request clarification or add additional context in comments.

2 Comments

it means before angularjs have to include the jqueryui file
that's not jquery that's jqueryui, you didn't mention that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.