Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229528

Syncing Data with PouchDB and Cloudant in Ionic 2

$
0
0

Hey there,

nice tutorial but i have a littel suggestion --> you can simplify your dependency injection in angular 2:

constructor(@Inject(Data) dataService) {
    this.dataService = dataService;

to something like this:

constructor(private dataService: Data) {
}

I wrote some tutorials for the german angularjs community angularjs.de this is a little pizza service app:
https://github.com/angularjs-de/angular2-pizza-service

Maybe this helps


Viewing all articles
Browse latest Browse all 229528

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>