ionic3

Ionic 3: The pipe '' could not be found [duplicate]

此生再无相见时 提交于 2019-12-10 12:37:16
问题 This question already has answers here : Ionic-3 Can't find Pipe (2 answers) Closed 2 years ago . I can't seem any error regarding this problem. I already import in app.module.ts and put it in 'declaration'. in app.module.ts import { NgModule, ErrorHandler } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular'; import { MyApp } from './app.component'; //ionic-native import { NativeStorage }

Ionic 2: EXCEPTION: No provider for NavController

谁说胖子不能爱 提交于 2019-12-10 12:30:37
问题 i have a problem with my ionic 2/angular 2 app. I got an app.ts where the hole "auth" part is implementet. The code looks like this: import {Nav, Platform, Modal, ionicBootstrap} from "ionic-angular"; import {NavController} from "ionic-angular/index"; import {StatusBar} from "ionic-native"; import {Component, ViewChild} from "@angular/core"; import {AngularFire, FirebaseListObservable, FIREBASE_PROVIDERS, defaultFirebase} from "angularfire2"; import {HomePage} from "./pages/home/home"; import

Angular2 Renderer: Svg rect is rendered but not showing in page

落爺英雄遲暮 提交于 2019-12-10 12:17:39
问题 I want to create a bar chart using SVG with rect as the bar. The related code as follows: barchart-one.html <svg #svgone width="400" height="250" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 250"> <g #abcd></g> </svg> barchart-one.ts import { Component, Renderer2, ViewChild, ElementRef } from '@angular/core'; @Component({ selector: 'barchart-one', templateUrl: 'barchart-one.html' }) export class BarchartOneComponent { @ViewChild('abcd') private abcd: ElementRef; constructor(private

Ionic Change back button icon for one page only

我怕爱的太早我们不能终老 提交于 2019-12-10 12:16:14
问题 Using app.module.ts, setting IonicModule.forRoot(MyApp,{backButtonIcon:"close"}) will set all the back icons in my app to close icon. However, I want to apply this in only a page or two of the app, and keep the rest with the default, or maybe third icon I choose. Does anyone know how can that be done without implementing my own button and functions for the back functionality? 回答1: By having an ion-toolbar in the ion-header, it appears on top of the default ion-navbar. So it is a workaround to

Uncaught TypeError: Cannot set property 'length' of null at VirtualScroll.readUpdate

半世苍凉 提交于 2019-12-10 11:08:01
问题 I was using simple ion-list with ngFor to display items in a list in ionic 3 & was working fine. Then I used virtual scroll with ion-list & now I am getting following error: Uncaught TypeError: Cannot set property 'length' of null at VirtualScroll.readUpdate Code snippet: <ion-list [virtualScroll]="anArray" approxItemHeight="50px"> <div *virtualItem="let arrayItem"> //other code Array declaration: public anArray: any[]; In constructor: this.anArray = []; After network response: this.anArray =

Android SDK Platform 26 license error in Ionic 3

隐身守侯 提交于 2019-12-10 10:25:57
问题 I'm trying to run my Ionic 3 project on my Android device with ionic cordova run android --device --stacktrace , but, I've the following output: ... Checking the license for package Android SDK Platform 26 in C:\Android\android-sdk\licenses Warning: License for package Android SDK Platform 26 not accepted. FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring root project 'android'. You have not accepted the license agreements of the following SDK components

How to measure the performance of an Ionic 3 app?

最后都变了- 提交于 2019-12-10 10:18:55
问题 I have developed an app using Ionic 3 framework. I would like to measure the CPU and memory usage of my app. What is the best practice to do so? 回答1: You must not use AndroidStudio and XCode to measure the memory usage of the Ionic app . Why? Here is the comment from Ionic team member Unfortunately we have not been able to reproduce this issue on our end. Would you mind checking your app on your device with safari dev tools instead of the memory tool in xcode? The reason I recommend this is

IONIC Android Apk File size Way Too Big ! how to decrease the size of app for android?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 07:01:09
问题 I have developed the app using ionic 3 and now while generating android apk file it 's size getting way too big. before the API integration The File Size Was 4.8MB once I Started API Interation I just Modified 10 Pages Then The APK File Size became 71 MB Cordova Plugins I have Used cordova-plugin-console cordova-plugin-datepicker cordova-plugin-device cordova-plugin-network-information cordova-plugin-splashscreen cordova-plugin-statusbar cordova-plugin-whitelist cordova-plugin-x-socialsharing

What are differences and use cases for Virtual VS Infinite scroll in Ionic 3

孤街醉人 提交于 2019-12-10 03:54:32
问题 I've gone through Ionic 3 docs and I was trying to understand the difference between https://ionicframework.com/docs/api/components/virtual-scroll/VirtualScroll/ and https://ionicframework.com/docs/api/components/infinite-scroll/InfiniteScroll/ I see they use different components and while they show an example of InfiniteScroll there is no example of VirtualScroll and it's set up also looks trickier. What is difference between the two and what are possible use cases when to use one or the

Appropriate Local Storage for Ionic 3

风格不统一 提交于 2019-12-10 03:46:59
问题 I am reading about Local Storage and I am quite confused. As I see there are two options: Native Storage , import { NativeStorage } Ionic Storage, import { IonicStorageModule } My app is developed with Ionic 3 and I am trying to save an array of object localy after retrieve it from Parse Server. With Ionic 1 I stored the objects array like this: setUsers (users){ window.localStorage.users_data = JSON.stringify(users); } getUsers(){ return JSON.parse(window.localStorage.users_data || '[]'); }