Questions tagged as 'ionic2'

2
answers

sort from largest to smallest array of objects extracted from firebase with angularfire2

I need to sort this array of objects ben: FirebaseListObservable<any>; e93menor = 9999; e93mayor = 0; this.ben = this.database.list('/Bencina'); this.ben.forEach(element =>{ this.b = []; element.forEach(ele =&...
asked by 24.08.2017 / 21:51
1
answer

json data optimization for better extraction

I need guidance as to how to structure some data for a better extraction and utilization of these. The data I have has a structure similar to this: Clima-> region->provincia->ciudad->Farmnacias-> Bencinas-> informacion_adi...
asked by 12.07.2017 / 07:00
1
answer

How to make a ngIf within an * ngFor Ionic 2

Good afternoon, I'm learning Ionic 2, I have the following code: <ion-card *ngFor="let data of lista"> <ion-card-content > <ion-card-title> {{ data.description }} </ion-card-title> <ion-grid >...
asked by 07.07.2017 / 21:07
1
answer

How to make a pipe filter in Ionic 2?

In the version of Angular 2 they removed the pipe Filter that filtered any coincidence in any property of a list of objects, in the documentation it says that if you need a pipe Filter that we manufacture it, but I do not know how...
asked by 27.06.2017 / 20:09
2
answers

error when installing ionic

I have a problem in the installation of the ionic library: I write in the terminal ... npm install -g cordova ionic and the terminal returns me: npm WARN deprecated [email protected]: Use uuid module instead /usr/local/lib └─┬ [email protected]...
asked by 28.07.2017 / 18:03
1
answer

How can I remove and put a class with a toggle using ionic 2?

I want a div to have a specific class when a toggle is in True and you remove it when the toggle is False using ionic 2 . Once I saw in a tutorial that they used a condition with the ng-class directi...
asked by 14.06.2017 / 00:29
1
answer

Configure Ionic proxy

When executing ionic start Aplication_mobile blank Error when downloading the template Fetching app base (https://github.com/driftyco/ionic2-app base/archive/master.tar.gz) ✖ Downloading - failed! Error: connect ETIMEDOUT 192.30.253.113:...
asked by 23.05.2017 / 15:22
1
answer

Ionic Components do not work

Good morning, everyone. I'm starting an app with Ionic. And I'm trying to use the components that Ionic brings by default from code.    link I understand that I need to import some type of library or similar since it currently does n...
asked by 27.03.2017 / 16:46
1
answer

Why does undefined tell me when doing a variable?

Greetings I have a variable which I declare like this: public clickNotification: boolean = false ;. But when clicking, you must change from false to true and when I do the console.log (this.clickNotification). In the console.log it shows undefin...
asked by 28.01.2017 / 06:16
1
answer

geolocation error timeout expired, leaflet library and ionic 3?

I ran in the browser and the code of the following link works: link However when installing on the device I get the following error: "geolocation error timeout expired" Does anyone know why this happens?     
asked by 12.11.2018 / 16:48