Answer the question
In order to leave comments, you need to log in
How to get geometry and coordinates of an element cross-platform with angular 7?
I’ve been studying angular for half a month, but I still don’t understand one important thing for myself.
The framework provides the ability to access template elements not directly, but through special classes so that the application can be migrated to different platforms, for example, to Android, iOS using NativeScript...
And everything would seem fine, but here's how to be, if you need to get the width, height, coordinates of the element, etc.?
Is there a way to write cross-browser, or do you need to write separate components for each platform that require such calculations?
After all, writing components is a continuous work with coordinates, calculations of width, height, borders, etc. and it turns out that their cross-browser compatibility is of little use.
Share your experience.
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