Hi all,
I’m trying to use Ionic.io Deploy with Ionic2 Cloud Plugin here : https://github.com/driftyco/ionic-cloud-angular.
Here’s my code, I wanted to know is someone already used this with ionic2 :
`import {Component} from ‘@angular/core’;
import {Platform, ionicBootstrap} from ‘ionic-angular’;
import {StatusBar} from ‘ionic-native’;
import {TabsPage} from ‘./pages/tabs/tabs’;
import {HTTP_PROVIDERS} from ‘@angular/http’;
import {CloudSettings, provideCloud, Deploy} from ‘@ionic/cloud-angular’;
const cloudSettings: CloudSettings = {
‘core’: {
‘app_id’: ‘464dc67f’
}
};
@Component({
template: ‘<ion-nav [root]=“rootPage”>’,
providers: [HTTP_PROVIDERS]
})
export class MyApp {
private rootPage: any;
constructor(private platform: Platform, public deploy: Deploy) {
this.rootPage = TabsPage;
deploy.check().then(() => {
deploy.download().then(() => {
deploy.extract();
});
});
platform.ready().then(() => {
StatusBar.styleDefault();
});
}
}
ionicBootstrap(MyApp, [provideCloud(cloudSettings)]);
`
Thanks