nativescript-orientation icon indicating copy to clipboard operation
nativescript-orientation copied to clipboard

Better integration in Angular-based projects

Open bracco23 opened this issue 5 years ago • 2 comments

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 avatar Mar 05 '19 23:03 bracco23

@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 avatar May 27 '19 05:05 Omi231

@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.

bracco23 avatar May 29 '19 22:05 bracco23