ionic3

Angular 4 and Ionic 3 No provider for HTTP

北战南征 提交于 2019-11-29 02:57:52
I have a service which imports Http, and when I use it in my app it throws error. " No provider for Http! Error at g injectionError ". I am lazyloading the app. Also the provider was generated through cli " ionic g provider ... " complaint-service.ts import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import 'rxjs/add/operator/map'; @Injectable() export class ComplaintService { private complaints: {subject: string, description: string}[] = []; constructor(public http: Http) { this.http = http; this.complaints = null; console.log('Hello ComplaintService Provider');

Running Ionic 3 app on iPhone throws error: 2 duplicate symbols for architecture arm64

我的未来我决定 提交于 2019-11-29 01:17:39
I am opening .xcworkspace of my Ionic 3 project and trying to run it on my device but I suddenly get the following error in Xcode: Ld /Users/manuel/Library/Developer/Xcode/DerivedData/MyApp-awaxbzztsgokklgptpuoufwcwmkt/Build/Products/Debug-iphoneos/MyApp.app/MyApp normal arm64 cd /Users/manuel/Documents/MyApp/dev/copernic4-ion2/galilei/platforms/ios export IPHONEOS_DEPLOYMENT_TARGET=9.0 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Ionic - Error: Uncaught (in promise): removeView was not found

半城伤御伤魂 提交于 2019-11-29 01:06:39
My Ionic app was working fine and I haven't done anything to it but suddenly I am getting this error and I don't know why. "Error: Uncaught (in promise): removeView was not found When you want to manually dismiss the Ionic loading you may need to follow the below example. Which is working fine I have tested in ionic labs. Ionic 3+ Note: If you call this.loading.dismiss() manually, I don't recommend to use dismissOnPageChange, you are probably dismissing the same loading twice. Why the below solution works? I think this.loading.present() is an asynchronous method, so we can't call this.loading

Blank app fails debug build - /Info.plist file not found

与世无争的帅哥 提交于 2019-11-28 21:37:34
In a larger context I resorted back to creating a blank project and running my build commands. Same error: ionic start myApp blank cd myApp ionic cordova run ios --debug --target="iPhone-8" --consolelogs ionic-app-scripts build --target cordova --platform ios [11:39:29] ionic-app-scripts 3.2.0 [11:39:29] build dev started ... [11:39:30] clean started ... [11:39:30] clean finished in 1 ms [11:39:30] copy started ... [11:39:30] deeplinks started ... [11:39:30] deeplinks finished in 15 ms [11:39:30] transpile started ... [11:39:33] transpile finished in 3.16 s [11:39:33] preprocess started ...

Disable swipe to view sidemenu ionic 2

本秂侑毒 提交于 2019-11-28 20:07:33
问题 I'm using a sidemenu ionic 2. when I swipe this page from left to right the side menu slides out i need to disable sidemenu swipe in particular page. app.html <ion-menu [content]="content"> <ion-content> <ion-list> <button ion-item *ngFor="let p of pages" menuClose (click)="openPage(p)" > <ion-icon name="{{p.icon}}" item-left></ion-icon> {{p.title}} </button> </ion-list> </ion-content> </ion-menu> <ion-nav id="nav" [root]="rootPage" #content swipeBackEnabled="true"></ion-nav> page.html I went

Make Ionic app appear in “Share” list and receive data

感情迁移 提交于 2019-11-28 18:48:57
I am trying to get an Ionic app to appear in the "Share" list when a user clicks the share button for example for an image. As far as I understand I have to add something like <intent-filter> <action android:name="android.intent.action.SEND" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="image/*" /> </intent-filter> to the AndroidManifest.xml . That I can do using the cordova-custom-config plugin , I think. I would then have to handle that intent somehow though and that is where it gets tricky for me. Seems like the only cordova plugin that is currently

Unable to run Ionic app after update to Android Studio 3.0

。_饼干妹妹 提交于 2019-11-28 17:15:41
Here's my Ionic Info cli packages: (/Users/billb/dev/customer-mkt-app/node_modules) @ionic/cli-utils : 1.15.2 ionic (Ionic CLI) : 3.15.2 global packages: cordova (Cordova CLI) : 7.0.1 local packages: @ionic/app-scripts : 3.0.1 Cordova Platforms : android 6.2.3 ios 4.4.0 Ionic Framework : ionic-angular 3.3.0 System: Android SDK Tools : 26.1.1 ios-deploy : 1.9.2 Node : v6.11.5 npm : 3.10.10 OS : macOS Sierra Xcode : Xcode 9.0.1 Build version 9A1004 Environment Variables: ANDROID_HOME : /Users/billb/Library/Android/sdk Misc: backend : pro I can successfully build the app. When I try to open it in

Component is part of the declaration of 2 modules

二次信任 提交于 2019-11-28 15:20:23
I try to build an ionic 2 app. When I try the app in the browser with ionic serve or launch it on an emulator everything works fine. But when I try to build it every time the error ionic-app-script tast: "build" Error Type AddEvent in "PATH"/add.event.ts is part of the declarations of 2 modules: AppModule in "PATH"/app.modules.ts and AddEvent in "PATH"/add-event.module.ts. Please consider moving AddEvent in "PATH"/add-event.ts to a higher module that imports AppModule in "PATH"/app.module.ts and AddEventModule. You can also creat a new NgModule that exports and includes AddEvent then import

Ionic3 with woocommerce rest api having post request?

吃可爱长大的小学妹 提交于 2019-11-28 14:39:00
I am new to both woocommerce and Ionic and am trying to create an application with woocommerce as backend I have implemented the get request based rest apis in project but am unable to implement the apis with the post request.the function I tried to write for post request to woocommerce create order api is as follows. postOrder(postparams){ var headers = new Headers(); headers.append("Accept", 'application/json'); headers.append('Content-Type', 'application/json' ); headers.append('consumer_key', 'the key comes here'); headers.append('consumer_secret', 'the secret comes here'); let options =

Angular2,Typescript: How to put the radio button checked when in an array which displays one element per page?

末鹿安然 提交于 2019-11-28 14:16:21
Let me explain it in detail.Sorry for the question framing. I've an array of Objects which is stored in the REST API. That array contains questions and choices. Each question has 4 choices which are radio buttons. I'm trying to display one question at a time on the same page along with the choices of the question. I've 2 buttons "previous" and "forward" which load the question on the same page. When I click the next button the next question in the array along with the choices are displayed.When I click previous button the previous question is being displayed but not "with the checked radio