ionic3

Can ionic2's pages support nested directory structure?

南笙酒味 提交于 2019-12-13 12:13:13
问题 I see the pages directory of many Ionic 2 projects is a flatted structure like below (if we use its generation command, the generated directory structure is flatted). e.g. pages/ |- login/ | |-login.html | |-login.scss | |_login.ts |- logout/ | |-logout.html | |-logout.scss | |_logout.ts |- order-list/ | |-order-list.html | |-order-list.scss | |_order-list.ts |- order-detail/ | |-order-detail.html | |-order-detail.scss | |_order-detail.ts But if a project includes many pages, i hope the pages

Access a variable from another Component (Ionic/Cordova/Angular)

ぃ、小莉子 提交于 2019-12-13 08:56:16
问题 I'm trying to access a variable from another component in order to check if the user is logged in or not. The application does the follow: If user is loggedin (function in login.ts) user will not be null anymore therefor [disabled]=!user wont be true anymore and the first year field will be activated. I Implemented the following stackoverflow solution but that did not work: Angular 2, Cant able to access a variable in one Component from another Component Here is my code that is related to

Angular 6 and Ionic 3 reactive form validation error not display

无人久伴 提交于 2019-12-13 08:44:56
问题 I am working on a project which uses the latest version of Angular and Ionic. I am working on a registration page. I need to display some error when the form input is not valid. I am using Angular Reactive form in my project but if I check error on the page it is not displayed. It only shows red color underline but I need to show some readable errors Here is my View code <ion-content padding> <ion-list class="items-middle" text-center> <!-- use the [formGroup] directive to tell Angular that

Convert ionic 3 application to apk [closed]

Deadly 提交于 2019-12-13 08:27:20
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I am new to ionic 3.I have generated the debugging file(debug.apk). What i need to do to get the unsigned apk. Update 1 --> Please help me guys. Thanks in Advance!!! 回答1: You have 2 options here. Option 1: (Paid service) Use Ionic pro package service. Create native apps in the

ionic3 <img> tag src [duplicate]

牧云@^-^@ 提交于 2019-12-13 08:16:29
问题 This question already has answers here : Ionic 3 - ios - displaying selected image on screen (2 answers) Closed last year . I want take a picture and show it in iphone,I used <img [src]="imagePath"/> in home.html,and in home.ts, add cordova-plugin-camera to take a picture, as following: const options: CameraOptions = { quality: 100, destinationType: this.camera.DestinationType.FILE_URI, //DATA_URL encodingType: this.camera.EncodingType.JPEG, mediaType: this.camera.MediaType.PICTURE,

ionic serve giving error

a 夏天 提交于 2019-12-13 08:14:18
问题 When I am trying to run my app, it is saying Type IonicApp is part of the declarations of 2 modules: IonicModule and AppModule! Please consider moving IonicApp to a higher module that imports IonicModule and AppModule. You can also create a new NgModule that exports and includes IonicApp then import that NgModule in IonicModule and AppModule. How do I get rid of this error ? Copying entire error coming in console below: ionic-app-script task: "build" [11:51:25] Error: Type IonicApp in F:/D

DEEPLINK_HOST in ionic deeplink

久未见 提交于 2019-12-13 05:05:35
问题 I am trying to set up my app to have deeplinks. As mentioend in the ionic native docs here we need to use the following command ionic cordova plugin add ionic-plugin-deeplinks --variable URL_SCHEME=myapp --variable DEEPLINK_SCHEME=https --variable DEEPLINK_HOST=example.com --variable ANDROID_PATH_PREFIX=/ What should I enter in the DEEPLINK_HOST parameter. If I provide it my site domain will I have to setup anything on that site? 回答1: DEEPLINK_HOST is the host part of the URL you click on

angular 4 function undefined when nested in http request [duplicate]

倖福魔咒の 提交于 2019-12-13 04:54:44
问题 This question already has answers here : 'this' is undefined inside function(). angular 2 [duplicate] (2 answers) Closed last year . I am new to angular and trying to learn quickly but I am stumped as to what is happening. When my TS file is loaded, it gets a list of messages from a http.get request and stores them int he variable conversation . However, when I add a new message, it is making it to my API and returning a result, but when I try to add the message to the conversation, I get the

How to disable request caching or add refresh in ionic 3 app?

旧时模样 提交于 2019-12-13 04:40:50
问题 I have a trouble with my ionic app : on ionViewWillEnter() I request the server with a GET request to get datas. If I open the page for the first time, the request is sent. If it's a second opening, app read the cache and doesn't send request. This trouble exists only on device. Any idea ? Thx. EDIT : I'm using this version : @ionic/app-scripts : 3.2.0 Cordova Platforms : ios 4.5.5 Ionic Framework : ionic-angular 3.9.2 All requests go into an interceptor : import { Injectable, NgModule} from

Ionic android build error after migrating to androidx

亡梦爱人 提交于 2019-12-13 04:33:11
问题 I am working on an ionic 3 project.i had to migrate to androidx due to a sudden build issue. I created the android platform with cordova-android@8.0.0 version and i did the needful but now i'm getting some other errors while building the android platform I created the android platform with cordova-android version 8.0.0. Added below lines to gradle.properties file android.useAndroidX=true android.enableJetifier=true Updated the plugins to the latest this is my project.properties file target