I am writing angularJS directive, in this directive I want to get the select list box scrollHeight value in angularJS, but it is undefined.
How can I get this value please? I can get this value in jquery.
Inside your directive link function:
app.directive("scrollHeightDetector", function() {
return {
restrict : "AEC",
link : function(scope, element, attrs) {
// here you can use element to get the height
var height = element[0].scrollHeight;
}
}
});