Skip to main content

Posts

Showing posts from February, 2017

ionic build android error gradle error

If faced error while building ionic build android then got to this path on mac and delete everything /var/root/.gradle/wrapper/dists/gradle-2.14.1-all/ /var/root/.gradle/wrapper/dists/gradle-2.14.1-all/ nzipping  /var/root/.gradle/wrapper/dists/gradle-2.14.1-all/53l0mv9mggp9q5m2ip574m21oh/gradle-2.14.1-all.zip  to  /var/root/.gradle/wrapper/dists/gradle-2.14.1-all/53l0mv9mggp9q5m2ip574m21oh Exception in thread "main"  java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78) at org.gradle.wrapper.Install.createDist(Install.java:47) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48) Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zi...

Inside conference app ionic To navigate between pages class type in .ts file in ionic 2 where class type in export

Inside conference app ionic To navigate between pages class type in .ts file in ionic 2 where class type in export Use Nav import { Events, MenuController, Nav, Platform } from 'ionic-angular'; right in start of declaration of class export class ConferenceApp {   // the root nav is a child of the root app component   // @ViewChild(Nav) gets a reference to the app's root nav   @ViewChild(Nav) nav: Nav;

create modal in ionic 2 angular 2 from parent page and receive data

create modal in ionic 2 angular 2 from parent page signIn() {     let data = { 'foo': 'bar' };     let modal = this.modalCtrl.create(LoginPage);     modal.present();     modal.onDidDismiss( (data : any) => {      //console.log(data.loggedin);      this.navCtrl.push(TabsPage);    });    //modal.onDidDismiss(() => {       //console.log("abcdef");     //});   } inside modal page setTimeout(() => {           //this.navCtrl.pop();           // Close modal           let data = { 'loggedin': 'yes' };           this.viewCtrl.dismiss(data);       }, 500);