Answer the question
In order to leave comments, you need to log in
How to get css styles applied to a directive in Angular 1.4?
The directive has a css class to which styles are applied.
The directive is used in different parts of the application and, as a result, different styles are applied to it.
I, in this directive, need to receive data applied to its style class. Specifically, I need to get the top and left of the element specified in the css.
At the moment, getting the height and width turned out through.
$element.height();
$element.width();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question