P
P
Peter2017-08-10 17:05:19
css
Peter, 2017-08-10 17:05:19

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();

How to get the rest of the value?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question