ionic3

Runtime Error Can't resolve all parameters for GoogleMap: (?, ?)

ε祈祈猫儿з 提交于 2019-12-24 00:43:29
问题 i am trying to get an basic map to be loaded on my templet. I just followed this instruction https://ionicframework.com/docs/native/google-maps/ to get my map works. But i am getting error like above question. here is my code // Load map only after view is initialized ngAfterViewInit() { this.loadMap(); } loadMap() { // make sure to create following structure in your view.html file // and add a height (for example 100%) to it, else the map won't be visible // <ion-content> // <div #map id=

How to prevent ion-checkbox from selecting the same item value?

人盡茶涼 提交于 2019-12-24 00:36:41
问题 This is an accordion list menu and at the 3rd level of the menu, I put a checkbox for each item. This code already getting the value from the item selected but the problem is when I cancel my selection it keeps me getting its value. How can I prevent a checkbox from selecting the same item and cancel if it is selected? form.html <!-- Third-Level --> <ion-item *ngFor="let item of child.children" detail-none class="child-item" text-wrap no-lines> <ion-label> {{ item.name }} <p style="color:

How to avoid Tabs on footer when redirecting to next page [duplicate]

笑着哭i 提交于 2019-12-23 22:33:27
问题 This question already has an answer here : How to keep tab when pushing a new page? (1 answer) Closed 2 years ago . i have a Tabs layout here is my page. On click on any of the item i am navgating to next 'this.navCtrl.push(NextPage);`. But the problem is on my second page also i am getting the tabs take a look at this . after navigation done i no longer need the tabs in my second page. how to avoid the tabs footer in the second page. 回答1: As of Ionic 2.0.0-rc.1, you can set to hide the tabs

Ionic Cordova run on android device gives: Could not find apk architecture: arm build-type: debug

夙愿已清 提交于 2019-12-23 22:25:13
问题 Anyone would point me anything how to fix de error? When I run: % cordova run android -l -c Everything seems to be going OK but in the end it gives me this erro: Built the following apk(s): Error: Could not find apk architecture: arm build-type: debug I know that must be something related to Crosswalk, but this project was running Ok before when I was using platform 6.3.0. Here is my Ionic Info: % ionic info cli packages: (/usr/local/lib/node_modules) @ionic/cli-utils : 1.19.2 ionic (Ionic

Deeplinks gives empty path

南笙酒味 提交于 2019-12-23 21:17:15
问题 I have a problem of implementing DeepLinks. I can open the app from the URL like myapp://myapp.com/route. But it doesn’t handle path of it. It just opens the program. I open it with : this.deeplinks.route({ '/route': RoutePage }).subscribe(match => { // match.$route - the route we matched, which is the matched entry from the arguments to route() // match.$args - the args passed in the link // match.$link - the full link data console.log('Successfully matched route', match); }, nomatch => { //

how to show user name in menu

我与影子孤独终老i 提交于 2019-12-23 20:55:29
问题 I have a {{user_name}} variable in my app.component.ts and I want to use it for displaying the user name which I am getting from local storage after the user logs in. But this loads only at app start and I want to reload it after the user logs in. When I close and reopen app after log in it works fine and user name displayed. But at first, it shows only "hi" and doesn't show the user name. <ion-menu [content]="content" > <ion-header> <ion-toolbar> <ion-title> <p> HI! {{user_name}} </p></ion

Ionic 3 Cordova ajax calls fail on Windows 10 (UWP)

南笙酒味 提交于 2019-12-23 20:11:25
问题 I have attempted to ask this previously, buy got no real answers, and have now been struggling for over a month. I just cannot get my ajax calls to work on an Ionic 3 Cordova application built for a Windows 10 UWP. They can access localhost, but not any outside connections. The application works fine on both Android and iOS. I am trying to test this locally on my dev machine. I use a certificate (bought) to sign the application, install this certificate, build the application for Windows, and

No provider for CallNumber in ionic 3

雨燕双飞 提交于 2019-12-23 19:10:17
问题 I am using ionic 3, I want to call a number and for that I have added ionic native plugin for call-number: ionic cordova plugin add call-number npm install --save @ionic-native/call-number But it's throwing an error: ERROR Error: Uncaught (in promise): Error: No provider for CallNumber! 回答1: You also need to add CallNumber in the providers array of your AppModule (located in the app.module.ts file): // ... import { CallNumber } from '@ionic-native/call-number'; @NgModule({ declarations: [..],

Displaying a FILE_URI image taken by Native Camera in Ionic 3

∥☆過路亽.° 提交于 2019-12-23 18:31:05
问题 How do you display a FILE_URI image taken by the user using @ionic-native/camera in Ionic 3? I can use Ionic Native's Camera to get a FILE_URI image URL, with a result like this: file:///var/mobile/Containers/Data/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX/tmp/cdv_photo_005.jpg However, When I try to display this image back to the user by referring to the URI in my view template, the image never loads. Things I've tried: -Using the image URI directly in the view <img src="{{profile.image}

How to hide nav-bar with tabs in Ionic 2?

混江龙づ霸主 提交于 2019-12-23 13:27:32
问题 How to hide nav-bar with tabs in Ionic 2? I only want to hide it in one of the pages excluding others. <ion-navbar *navbar > <ion-title>Item Details</ion-title> </ion-navbar> I have tried hide-nav-bar="true" but it does not work. 回答1: From a tab page you can do: this.nav.parent.parent.setRoot(LoginPage); Before: Nav -> Tabs -> somepage After: Nav -> LoginPage Nav is the root of all nav stacks in Ionic 2 Also, a modal works well for a situation where you want to show a list item's detail in a