Questions tagged as 'ionic2'

1
answer

How to select an element of the DOM for its id in ionic2

I have an element in DOM that is as follows: <input type="text" id="miElemento" class="miElemento"> <ion-item class="input_float"> <ion-label floating >Nombre:</ion-label> <ion-input class="x" id="nomb...
asked by 17.08.2017 / 22:19
1
answer

Variable range in onfocus event of an Input

I'm working with ionic 2 and I have a variable that I want to access in an event in my html code, but by console I get it undefined, how do I get to reach that variable? Code ts: import { IonicPage, NavController, NavParams} from 'ionic-a...
asked by 07.07.2017 / 23:23
0
answers

Do you use a pipe inside the ts file in ionic 2?

Perform a pipe that works perfectly within the file html , but I'm in a case that I need to use that pipe within my file ts , and import the pipe, but I do not know how to use it     
asked by 28.06.2017 / 22:45
1
answer

How to use a default value to model a segment in ionic 2?

I'm using the segment example from the ionic documentation. in the example there are two *ngSwitchCase that are these *ngSwitchCase="'puppies'" and *ngSwitchCase="'kittens'" , what I want to achieve is that by default the val...
asked by 26.06.2017 / 07:00
1
answer

Ionic 2. Content ngFor in segments

Good, I have a problem when loading the content of different segments on my page. I show you first the code in which I create the segments and their content. <div padding> <ion-segment [(ngModel)]="accion"> <ion-segment-bu...
asked by 13.06.2017 / 02:07
1
answer

Start project with zip folder of ionic creator

I made a project in Ionic creator and I exported it in zip , this file contains the folder src . Then I downloaded a template blank from the console but now I do not know where I should put the folder src in t...
asked by 18.06.2017 / 22:44
0
answers

How to use the user ID logged in angular2 and JWT?

I have this code in my service which is linked to a query on the server , the query uses a ID relative, this ID would be that of the logged-in user, but I do not know how to call the service and be able to use it. import { Injec...
asked by 05.06.2017 / 18:26
1
answer

IONIC 3 - overwrite the apps

Hi, I am new to ionic 3 and the problem that it generates is that when you install an apk in android everything works fine but when you install another one it takes the new one as an update and overwrites it eliminating the one that I previously...
asked by 25.06.2017 / 08:42
0
answers

ngFor in Ion-list does not show bluetooth devices

This is the devices.ts page import { Component } from '@angular/core'; import { NavController } from 'ionic-angular'; import { LoadingController } from 'ionic-angular'; import { AlertController } from 'ionic-angular'; import { Range } from '...
asked by 08.05.2017 / 19:13
1
answer

Ionic 2 (click) is triggered twice

I am developing an app with Ionic 2, but I found the problem with the click event when trying the application on a device, in this case it is an iphone. This is the code I use to generate an alert, it's simple but it's triggered twice. hom...
asked by 04.05.2017 / 19:31