Questions tagged as 'ionic2'

5
answers

Ionic 2 - Status Bar

I can not change the color of my Status Bar with Ionic 2. I checked the documentation and am doing the following. app.js import {StatusBar} from 'ionic-native'; app.js (constructor ()) platform.ready().then(() => { StatusBar.overl...
asked by 08.06.2016 / 02:39
0
answers

What is the difference between page and component?

Is there a difference between generate page and generate component ? When should I use one and not the other? Does this change anything compared to Lazyload?     
asked by 28.11.2018 / 16:01
0
answers

Incompatibility android 4.4.2 with ionic 2

I made an application in ionic 2 and everything works perfectly, however, a user when using on the mobile with android 4.4.2, some functionality, such as file upload, does not work. It does not generate errors, it simply does not upload. I...
asked by 20.10.2017 / 18:46
0
answers

Angular 2 - Change the separator of the comma values to point

I want the value of my Form to return 2 decimals and with a comma separating instead of a point.    Ex: 20 - > 20.00 And if the value is greater than a thousand it has a point separating.    Ex: 1000 - > 1,000.00 How can I do...
asked by 06.09.2017 / 13:47
1
answer

Decimal mask on an ion-input of type "number"

I need to make a mask of values (9 digits with 3 decimals), and when the user starts to enter the value, the field automatically inserts the commas and point, similar to what happens today in the bank systems, where in the field we have the 0.00...
asked by 21.07.2017 / 15:41
1
answer

ionic 2 how to add Authorization in header

I've been trying for days and I can not get the following method in ionic 2 . getMy() { return this.http.get("users/my", this.setAuthorization(this.headers)) .toPromise() .then(res => res.json())...
asked by 21.08.2017 / 20:18
0
answers

How to change the color of the Ion-item Input and the Android Bar?

How do I change "blue" when I click on the input for the color I want in the ion-input? I just managed to change the color of the placeholder with: *::-webkit-input-placeholder { color: rgb(255,255,255) !important; } How do I change the c...
asked by 08.01.2017 / 01:32
0
answers

Define ion-radio as required

Good evening, I'm building a dynamic form using ionic2, but the multiple-choice components do not accept the required property how would I do this in ionic? The component that I'm trying to put the required property on is the...
asked by 23.05.2016 / 01:56
2
answers

How to get a Promise value in JavaScript / TypeScript?

I'm starting with Ionic 2, which uses Angular 2, and I'm trying to understand how promises work, since some libs I'm using work have functions that return promises and would like to get the value returned, but the return is always undefined :...
asked by 06.06.2016 / 21:17
1
answer

Turn html page id inside ngFor to page ts

I have an * ngFor of an array object, I want to pass the id inside the button to the typescript for configuralos as links in a modal. Here is the syntax that I'm trying with no success: <ion-item *ngFor="let item of itens"> <ion-t...
asked by 26.01.2017 / 22:37