ionic3

Checkbox Alert Controller - Add 3 Buttons

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 09:41:51
问题 I make one application with IONIC-2 Beta version. i 'm use Checkbox Alert Controller, and add two buttons "Okay" And "Cancel", Now i need to add one more button in Alert Controller. i implement below to add one more button. alert.addButton('Cancel'); alert.addButton({ text: 'Info', role: 'info', handler: data => { //this.nav.push(DoubleMatPage,{"form_data":this.form_data,"offset":data}); } }); alert.addButton({ text: 'Okay', handler: data => { this.nav.push(DoubleMatPage,{"form_data":this

After reseting plugins, Ionic 2 program doesn't work?

我怕爱的太早我们不能终老 提交于 2019-12-12 09:19:08
问题 I used many plugins in my Ionic 2 project. All things works fine before. But after launching ionic state reset --plugins , some objects cannot be found any more. I've used Beacon Plugin in my project. ----edit---- What it doesn't work is Cannot read property 'Delegate' of undefined in var delegate = new this.locationManager.Delegate(); ----edit---- The most weird thing is that ionic serve works (Browser), but ionic run android (Device) doesn't. ----edit---- After ionic platform rm android and

Ionic Build throws the following error: “could not find any matches for com.android.tools.build:gradle:+”

烂漫一生 提交于 2019-12-12 09:06:28
问题 I'm developing an Ionic app and my builds were working fine two days ago, but suddenly today they're failing. It seems it's about the FMC dependencies, since one of them is classpath 'com.android.tools.build:gradle:+' and the error I'm getting is Could not find any matches for com.android.tools.build:gradle:+ . Plus I'm getting this message: FAILURE: Build failed with an exception. * Where: Build file '/home/patricio/infomigra_app/platforms/android/build.gradle' line: 95 And the line 95 is

use ngx-translate in .ts file

此生再无相见时 提交于 2019-12-12 08:07:06
问题 I want to use a translation in sidemenu titles, I read this tutorial and I solve it as: translate.get('HOME').subscribe(res => { this.pages= [ {title: res , component: HomePage}, {title: 'My Account', component: MyAccountPage}, {title: 'Changer Pass' , component: ChangePasswordPage} ] It works, but the problem is that I want t get many title from the translation file to set them as sidemenu titles. 回答1: Please do not use the forkJoin operator in this case. ngx-translate supports fetching

How can manage multiple slider in ionic2 for web application?

百般思念 提交于 2019-12-12 08:06:23
问题 I have html like this for slides <ion-slides [pager]="false" slidesPerView="6" #slider_a> <ion-slide *ngFor="let slide of items_a " #ddd> <ion-card class="list-card" > <div class="cardInnerWrap"> <ion-item> {{slide.gameTitle}} </ion-item> <img src="{{slide.gameImage}}"> </div> </ion-card> </ion-slide> </ion-slides> <ion-slides [pager]="false" slidesPerView="6" #slider_b> <ion-slide *ngFor="let slide of items_b " #ddd> <ion-card class="list-card" > <div class="cardInnerWrap"> <ion-item> {

Ionic 3's PWA & Firebase Cloud Messaging registration

我与影子孤独终老i 提交于 2019-12-12 08:05:27
问题 I was following this article here (which is not complete unfortunately) in attempt to learn how to friend Ionic 3 based PWA and Firebase Cloud Messaging: Push Notifications with FCM What I did: as advised in the article added FCM libraries into service-worker.js: 'use strict'; importScripts('./build/sw-toolbox.js'); importScripts('https://www.gstatic.com/firebasejs/4.9.0/firebase-app.js'); importScripts('https://www.gstatic.com/firebasejs/4.9.0/firebase-messaging'); firebase.initializeApp({ /

For-each in ionic2 with angularjs2

时光总嘲笑我的痴心妄想 提交于 2019-12-12 07:58:37
问题 I make one application with IONIC-2 Beta version. I want to use for-each loop. is it possible to use for each in angular-V2? Thanks. 回答1: First in the Component , you have to declare the array you want to show: import { Component } from "@angular/core"; @Component({ templateUrl:"home.html" }) export class HomePage { displayData : []; constructor() { this.displayData = [ { "text": "item 1", "value": 1 }, { "text": "item 2", "value": 2 }, { "text": "item 3", "value": 3 }, { "text": "item 4",

ionic 3 Build failed for task :processDebugManifest

故事扮演 提交于 2019-12-12 07:20:55
问题 I am having trouble in building my ionic 3 app. Every time I try to build the android app it gives the following error. * What went wrong: Execution failed for task ':processDebugManifest'. > Manifest merger failed : Attribute meta-data#android.support.VERSION@value val ue=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:2 7:9-31 is also present at [com.android.support:support-v4:26.0.0-alpha1] Androi dManifest.xml:27:9-38 value=(26.0.0-alpha1). Suggestion: add

How can I programmatically close a FAB button list in Ionic 3? [closed]

余生长醉 提交于 2019-12-12 06:59:41
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago . How can I programmatically close a FAB Button list in IONIC 3? 回答1: 1) In HTML <ion-fab top right #fab> <ion-fab-list side="bottom"> <button ion-fab (click)="Close($event, fab)"> <ion-icon name="trash"></ion-icon> </button> </ion-fab-list> </ion-fab> 2) In .TS import { FabContainer } from 'ionic

Ionic3 with sqlite- on select

隐身守侯 提交于 2019-12-12 05:12:44
问题 I have issue with querying the records from SQL Lite DB using cordova in Android this.platform.ready().then(() => { this.sqlite.create({ name: 'temp.db', location: 'default' }).then((db: SQLiteObject) => { console.log('Querying for temp user '+user.userName+'Password '+user.password); console.log('User queried'+user.userName); db.executeSql("SELECT * FROM USER where USER_NAME = ? and USER_PWD=?", [user.userName,password]).then( response => { let records=''; for (let i = 0; i < response.rows