Questions tagged as 'ionic2'

1
answer

Projects created with Ionic 2 do not run

I create my projects without problems, but to the command: ionic serve , I have the following result: 0 info it worked if it ends with ok 1 verbose cli [ 'C:\Program Files\nodejs\node.exe', 1 verbose cli 'C:\Users\allan\AppData\Roaming...
asked by 03.04.2017 / 07:24
3
answers

Error: Failed to find 'ANDROID_HOME' environment variable

I am a beginner in mobile development and was studying IONIC, when I was trying to generate the test project apk gave the following error:    WARN: ionic.project has been renamed to ionic.config.json, please   rename it Running command:   /ho...
asked by 08.01.2017 / 18:59
1
answer

Inject token in the header of all http requests

I'm trying to create a general method to insert a token into all my http requests. I do not understand much of angular 2 but I did it in the way below:    File generic-service.ts import {Http, Headers} from '@angular/http'; import {...
asked by 07.08.2016 / 04:02
1
answer

Detecting change of ion-textarea with ionic2

I'm developing an app and I needed to detect the ionChange or keyUp of an ion-textarea in ionic 2. Below are examples that work.    my-file.ts atualizar() { console.log('Atualizou :)'); }    My .html <!-- FUNCIONA --> <i...
asked by 21.08.2016 / 04:35
1
answer

Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response [duplicate]

How can I eliminate this error? XMLHttpRequest cannot load http://www.ramosdainformatica.com.br/food/apinhac.php. Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response. app_controller.js:20 []...
asked by 03.05.2016 / 03:08
0
answers

Vector burning error on firebase - Ionic 3

I'm developing an app, and I need to write a vector in firebase (RealTime). Code: irParaCarrinho(element) { element = this.pedido.carrinho; if (this.vetCarrinho.indexOf(element) === -1) { this.vetCarrinho.push(element); So far...
asked by 21.11.2018 / 17:11
0
answers

Problem in Function IONIC 2 Typescript - Function executes only once

Good Night! I have a problem with a function in Typescript (Ionic 2). The function performs a search / filter from the contents of the tags. The user enters the number they want to fetch and the function filters from the number entered. The f...
asked by 07.08.2018 / 04:43
1
answer

Tansform a JSON response in a list and display the data on the screen with IONIC

Good afternoon everyone, whenever I have any doubts I run here in the hope that you help me and I always get positive answers, from now on thank you very much. Well, I have a little problem here (I do not have much affinity for typescript). I...
asked by 23.02.2018 / 16:59
0
answers

Listening / Recording speechRecognition audio

I built a simple application using speechRecognition startListening() { let options = { language: 'en-US' } this.speechRecognition.startListening().subscribe(matches => { this.matches = matches; this.cd.detectChanges();...
asked by 03.12.2017 / 14:41
0
answers

App ionic 3 with white screen [closed]

asked by 15.11.2017 / 01:38