Questions tagged as 'ionic2'

1
answer

How to create a reactive form in Angular

I have to implement some test in ionic, the questions for these test I collect them from the database and I show them. I have the problem when collecting the data. To start I keep the data of the questions in a array of objects...
asked by 13.02.2018 / 12:20
2
answers

Objecto undefined

I am printing an object dateImagen.boolean and I get an error that the Cannot read property 'boolean' of undefined , I do console.log(dateImagen) , but if I get the information that is this: Object {boolean: true, result: Ar...
asked by 07.04.2017 / 18:33
3
answers

How can I convert the URL of a base64 image (IONIC 2)

this.camera.getPicture({ sourceType: this.camera.PictureSourceType.PHOTOLIBRARY, destinationType: this.camera.DestinationType.FILE_URI, quality: 100, encodingType: this.camera.EncodingType.PNG, }).then(imageData => { console.log('EST...
asked by 10.08.2017 / 19:13
1
answer

Parameter step undefined in Ionic 2 when there are Tabs

Esoy using the tabs in Ionic 2 but I can not pass parameters between them. Currently, what I'm trying to do is to import the class that contains the tabs into one of the tabs and try to access a method of that class that returns the values....
asked by 29.03.2017 / 15:02
1
answer

define a function of an object in typescript

Good morning, I am new to Typescript and would like to know how I can pass my JavaScript code to Typescript, since I am rewriting my code in Angular 2. Example: var o = geotab.addin.addinangular= function () { 'use strict'; return...
asked by 11.04.2017 / 23:50
1
answer

How do I order an pipes in Ionic 2?

I need to organize a product list sorted by Array of String as properties of Array of objects example: Case 1 <div *ngFor="let producto of productos| orderBy:'nombre,descripcion' : 'ASC' || 'DES'"></div>...
asked by 27.06.2017 / 19:11
3
answers

input component angular2

Do you know if you can get the data from the constructor that is obtained from the input component that define an 'id' ?, That is what I do is make a directive <contenido-images [id]="contenido.id"></contenido-images> that...
asked by 06.04.2017 / 00:55
0
answers

Is there any way to add icons to the Ionic 2 alert?

I am modifying the appearance of the components that ionic brings, but I still need to add icons to this alert. since for example I create a class in scss. I do not add this correctly, and if it is not possible. I wanted to modify a modal. but t...
asked by 13.02.2018 / 22:40
2
answers

How to run a PHP with Ionic 2

By making the request of my-php.php by GET of Http I literally retorted the code of the php file in a text string , what I need is that the file php be executed and I return the result of the query to the database in Json f...
asked by 25.05.2017 / 01:21
1
answer

Use variables like $ scope or $ timeout in the constructor in Ionic

I am new to Ionic and I am trying to use the background plugin, I have the following simple and functional my application builder: import { Component } from '@angular/core'; import { Platform } from 'ionic-angular'; import { StatusBar } from...
asked by 16.08.2017 / 21:08