ionic2 Questions

4

Solved

I have one silly question. I'm wondering about ways to speed up my app. In most cases the popular one is to use --prod flag during build. But also I found an advice to enable Angular production mod...
Oberheim asked 27/6, 2017 at 13:43

2

Solved

Using the Angular2 pipe slice I can do something like this to only show the first five elements of my items. <ion-item *ngFor='let item of items | slice:0:5"> How can I use variables inste...
Power asked 6/7, 2017 at 9:12

2

Solved

I'm using ionic 2 and want to load a picture during runtime. In the past projects I always did it like this: bikeImage.src = "data:image/jpeg;base64," + bikeResult.image; But it doesn't work in ...
Melissiamelita asked 1/11, 2016 at 11:56

4

Solved

I noticed that the ngOnInit() method gets not called when I come back to the page which is already instanced. I have to use any other method for this? I need a method which is called everytime when...
Wakerobin asked 22/2, 2017 at 9:56

2

Solved

I've updated my ionic app from beta 11 to rc0. So it means I've switched from angular2 rc4 to angular2 stable and from typescript 1.8 to 2. I have a redux architecture and am using the Redux libr...
Outofdoor asked 1/10, 2016 at 13:33

4

Solved

This is my code, and I tried text-wrap , inside ion-header still can not show whole title. <ion-header> <ion-toolbar text-wrap color="danger"> <ion-buttons> <button ion-but...
Sycamore asked 14/8, 2017 at 8:52

7

The recent version is 3.2.0 and I'm facing lot's of issues with it like the ionic serve command not working.
Circumnavigate asked 24/5, 2017 at 8:15

4

Situation: I am using FirebaseObjectObservable to populate my Ionic 2 (rc0) template. Template code: <ion-card-content> <p>{{(course | async)?.description}}</p> <br> &l...
Rebekah asked 4/10, 2016 at 17:38

4

Solved

I am using Angular2 to restrict the copy and paste in textbox. But how do i write a custom directive, so that it will be easy to apply for all the text fields. Below is the working code to restric...
Revisal asked 20/11, 2017 at 4:9

2

Solved

I want to use Firebase Javascript, in an Ionic 2 project so I can develop the Push Notification logic that I want to apply, and test it in a browser, by using the CLI "ionic serve". I've followed ...
Crumpler asked 6/3, 2017 at 13:3

2

I am creating Progressive-web-app application ,I want to store user information in local device. So, how can i do this.how can I store user login information,so that he does not have to login again...
Testa asked 15/2, 2018 at 12:24

3

Solved

I would like to keep my cache keys in a central place.I would like to do it as a constant file.At this moment I have declared cache keys each and every page where it's required.But I need to remove...
Hogwash asked 3/8, 2017 at 10:33

23

Solved

I try to install app via adb and get a error: $ ./adb -d install /Users/dimon/Projects/one-place/myprogram/platforms/android/build/outputs/apk/android-debug.apk -r -g 3704 KB/s (4595985 bytes in 1...
Solferino asked 5/6, 2016 at 12:4

6

Solved

I am searching on many forums and questions, but nobody seems to ask how to double click ou double tap in Angular/ionic 2 ? In ionic v1 it was available with on-double-tap (see http://ionicframew...
Rickierickman asked 6/3, 2017 at 10:47

1

I'm using OneSignal for mobile push notification, but some devices' ids got in invalid_player_ids when sending the notification from my REST API. It have happened with different devices. Both andr...
Jimenez asked 19/10, 2017 at 11:48

5

Why do the first line of code return an object of type "Date" whereas the second one returns a "number" ? According to the doc (http://www.w3schools.com/jsref/jsref_sethours.asp) setHours() should...
Ferdinand asked 14/12, 2016 at 17:20

3

Solved

I got run time error: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL Error: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL at http://localhost:8100/build/polyfills.js:3:...
Hildegard asked 23/3, 2017 at 8:33

1

I have read many post related to integrate google recaptcha with ionic hybrid app, I didn't find any solution for it. I have the following questions regarding g-recaptcha use in ionic app: Can I ...
Lavalava asked 31/1, 2018 at 6:56

5

Solved

How to validate and show error for Input in Alert Controller in Ionic 2 or 3 let prompt = Alert.create({ title: 'Alert input validation', message: "How can I validate below input field?", input...
Czardas asked 30/8, 2017 at 21:15

6

Solved

I'm trying to use geolocation in my ionic2 hello world project, and I add the ionic plugin "Geolocation" following the instruction on the official site. I've run these two commands: $ ion...
Exercitation asked 24/3, 2017 at 6:43

9

Solved

Right now the ionic app renders with android styling by default. Instead of using the ?ionicplatform=ios param every single time I'd like that to be the default option. I looked for hints in the ...
Metaplasm asked 12/10, 2017 at 9:16

6

Solved

I searched in many forums, questions, in doc but can't find the correct solution. Problem What is the best way to increment a value using angularfire2 ? I saw we could use [transaction()][] but ...
Sikkim asked 4/3, 2017 at 13:59

22

Solved

I always get this error message when I run "Ionic start project name": Error message Running command - failed![ERROR] An error occurred while running npm install (exit code 1): module.js:471 t...
Moltke asked 5/6, 2017 at 6:39

7

Solved

I have an array of object called options. this is my html code <ion-item> <ion-label>place</ion-label> <ion-select [(ngModel)]="place" (click)="optionsFn(item);"> &l...
Kennedy asked 15/9, 2016 at 5:46

5

I am trying to send a HTTP GET request from my Angular2/ionic2 app using http.get. The HTTP GET request contains a valid Linkedin access token and is supposed to return some profiledata. However, t...
Leenaleeper asked 15/9, 2016 at 20:55

© 2022 - 2025 — McMap. All rights reserved.