Get productive with Ionic and NativeService

I’ve been working on a gigantic Ionic Framework application for the past few months, and one thing i absolute hate is that 30-second wait to build your ionic app to the device in order to test without all the console errors that come as a result of running ionic serve.
But i can make all that go away, with a simple fallback for browsers, using a simple Angular service, and it’s only like…14 lines of code, even less if you don’t double space like i do! Are you ready? Here it is:
The real benefit? Testing!
The real beauty of this service is that it allows you to test your apps in the browser using things like Protractor and NightWatch easily.
Easier development, theming, and testing in less than 20 extra lines of code!