nativescript-orientation
nativescript-orientation copied to clipboard
Better integration in Angular-based projects
I was taking a look at this plugin as I needed to integrate some orientation-dependent functions in an application I am developing, but I'm sad to see there is no full and direct support for Angular-based projects.
I decided to develop a little extension to this plugin adding an Angular Module and an Angular Service to allow components to access orientation-related functionalities through Angular-DI.
If it is considered useful, I am willing to open a pull request to show my changes and, if you can help me, test the resulting plugin.
@bracco23 Can you publish your version in new repository? I am extensively using this plugin in my app so it will be helpful for me.
@Omi231 I forked this repo and added my code. I have not been able to really try it though, just checked that all the relevant code was included in after a npm install
command. If you want to give it a shot, feel free to take a look at it. I'll add some docs in the next days as soon as I can.