0

I'm using the wrapper: https://github.com/Yankovsky/nouislider-angular/blob/master/nouislider.js

for nouislider plugin. And in my controller I want to get element, that I created in template:

<div ya-no-ui-slider='options'></div>

to call method from original plugin: slider.querySelector('.noUi-pips');

I found this:

// allow to get noUiSlider instance from outside of that directive
that.getNoUiSlider = function() {
    return noUiSliderInstance;
};

in source: https://github.com/Yankovsky/nouislider-angular/blob/master/nouislider.js#L58

How could I call it to get an instance ?

1 Answer 1

1

I think you are trying to access the scope from outside the directive, which is something like:

var scopeFromSlider =  $(".selector").scope();

Can be also

angular.element(".details-container").scope()
Sign up to request clarification or add additional context in comments.

2 Comments

yes, thank you, you are right. But i can't find this method in object that scope() returns for me.
it returns me ChildScope object

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.