ionic3

Error : has a @IonicPage decorator, but it does not have a corresponding “NgModule” [duplicate]

醉酒当歌 提交于 2019-12-11 09:13:20
问题 This question already has answers here : Page has a @IonicPage decorator, but it does not have a corresponding “NgModule” (10 answers) Closed last year . C:\wamp\www\Ionic4\ionic3-angular4\src\pages\home\home.ts has a @IonicPage decorator, but it does not have a corresponding "NgModule" at C:\wamp\www\Ionic4\ionic3-angular4\src\pages\home\home.module.ts home.ts import { Component } from '@angular/core'; import { NavController } from 'ionic-angular'; import { IonicPage } from 'ionic-angular';

Debug ionic3 app for building it with --prod flag

余生颓废 提交于 2019-12-11 09:09:31
问题 For a while, I didn't build my ionic3 app with --prod flag, it used to work fine, but I've made quite a few changes since that. Now when I run ionic cordova build android --prod I get this error message: TypeError: Cannot read property 'length' of undefined at Object.unescapeIdentifier (/path/to/my/app/node_modules/@angular/compiler-cli/node_modules/typescript/lib/typescript.js:10550:26) at getTextOfNode (/path/to/my/app/node_modules/@angular/compiler-cli/node_modules/typescript/lib

How to Hide Keyboard in Ionic 3?

断了今生、忘了曾经 提交于 2019-12-11 08:59:36
问题 How to Hide Keyboard in ionic3? We have a problem with ionic 3 apps during testing in iPhone. After fillup Payment Gateway information (which is launched in iFrame), Whenever we go to the back page using the back button, Keyboard is not Hiding. We used cordova-plugin-ionic-keyboard and use Keyboard.hide() method. But didn't work. 回答1: Try this import { Keyboard } from '@ionic-native/keyboard'; @Component({ selector: 'page-home', templateUrl: 'home.html' }) export class HomePage { constructor

How to get the croped image using Croppr.js?

拥有回忆 提交于 2019-12-11 08:56:04
问题 I'm working on an Ionic 3 mobile application. In there I'm using Croppr.js library to crop the images before uploading to the server. But I couldn't find a way to get the cropped image. This is the code that I have tried index.html <link href="assets/css/croppr.min.css" rel="stylesheet" /> <script src="assets/js/croppr.min.js"></script> profile.component.ts ionViewDidLoad() { this._croppr = new Croppr('#croppr', { maxSize: [512, 512, 'px'], minSize: [128, 128, 'px'], onCropStart: this

Why is ionic 3 two way data binding not working?

纵饮孤独 提交于 2019-12-11 08:49:59
问题 please I'm trying to flesh out a registration page for my ionic ongoing project Trying to bind my ([ngModel]) to an object property in my component. Let me just show the code excerpt so you'll understand **Registration.ts** // This is my registration component import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams } from 'ionic-angular'; @IonicPage() @Component({ selector: 'page-registration', templateUrl: 'registration.html', }) export class RegistrationPage

ngOnInit and Constructor are called twice

∥☆過路亽.° 提交于 2019-12-11 08:23:51
问题 For some reason I'm getting the function being called twice and I can't seem to figure out why. I see this question here why ngOnInit called twice? Which references this github issue https://github.com/angular/angular/issues/6782 But that would seem to suggest I'm importing the file in multiple places which I don't believe is the case. As far as I know I'm taking advantage of Ionic 3's lazy loading. Here is a link to a stripped down github repo you can run locally to see the issue (I'm sorry

Ionic 3 Angular component load listener

守給你的承諾、 提交于 2019-12-11 07:56:26
问题 In my Ionic 3 Angular app there is a component I wrote which is using chart.js charts. These charts are injected using . The problem is when the app is rendered the component is sometimes not yet initialized and the chart data initialization throws undefined errors. On Ionic page the method ionicViewDid load gets invoked. But in component it seems the same method doesn't get called. So what is the best way to do data initialization by knowing that canvas got initialized. 回答1: You can try

window.FirebasePlugin.verifyPhoneNumber is not a function error

左心房为你撑大大i 提交于 2019-12-11 07:30:21
问题 I have a ionic project (created by Ionic CLI). I am trying to integrate firebase's phone authentication mechanism to login user. As per different tutorials and guidelines, I knew I had to rely upon some forks as the official firebase plugin doesn't have phone authentication support yet. I came across - 1. https://github.com/jestcastro/cordova-plugin-firebase & 2. https://github.com/arnesson/cordova-plugin-firebase and installed them separately. Both of them have similar structure : window

Read File as Array From SD Card in cordova (ionic) with cordova-plugin-file

孤者浪人 提交于 2019-12-11 07:27:43
问题 I use audio files in my app that I need to get as an buffer array. For this I let the user choose a file (using Ionic/Cordova FileChooser Plugin) and then I get an URL like: content://com.android.providers.media.documents/document/audio%3A8431 After that, I sent this to Cordova Plugin File resolveNativePath function and I get a Path Like: file:///storage/emulated/0/Prueba interno/Interno, Teddybär, Dreh Dich Um__320kbps.mp3 Here I make my audioFileInfo Object audioFileInfo = {name: "Interno,

An error occurred while running npm i (exit code 1)

霸气de小男生 提交于 2019-12-11 07:24:50
问题 I installed Cordova and Ionic on my machine, afterwards created a blank test application by typing ionic start demo blank however I got an error and couldn't handle it. The result shown is like this: ng directory .\demo - done! ading and extracting blank starter - done! > node-sass@4.5.3 install C:\Users\msi-nb\Documents\Ionic Projects\demo\node_modules\node-sass > node scripts/install.jsr new app with Cordova to target native iOS and Android? Yes Downloading binary from https://github.com