Questions tagged as 'typescript'

2
answers

How do I emulate an application of ionic 2 on the tablet, and also how does it generate a .ipa and .apk?

I want to emulate my ionic 2 application on the tablet but I can not, I already uploaded it to the ionic cloud but it only works on the ionic view application, I also used the ionic emule and the ionic run, but when it opens the emulator of the...
asked by 27.03.2017 / 21:09
1
answer

ionic-native / http issues "NullInjectorError: No provider for HTTP!"

I'm starting in ionic 3.2 with angular, as per the linking documentation I installed on the project the @ionic-native/http module with the following commands via CMD: ionic cordova plugin add cordova-plugin-advanced-http npm install...
asked by 19.03.2018 / 02:33
1
answer

Perform validation on the form only after losing focus on angular validator

I am using the validations of the reactive forms in the angle, I put a valid email validation, the problem is that while the user is still typing the email already appears. I would like to know how to just show the error message after losing foc...
asked by 20.12.2018 / 16:08
1
answer

What is the default visibility of a variable in TypeScript, what is the importance of var when declaring variables?

When declaring a variable, when we omit the visibility parameter (public, private, and protected) the variable is created by default in what visibility? export class AddEditTaskPage { idade: number; valor: string; .... Just one more qu...
asked by 22.09.2018 / 19:46
1
answer

Upload image without page reload

Good evening, I'm uploading file, it's working but every time I upload the file the page refreshes, could anyone give a hint how to solve this? I'm using angular 5. component.ts OnSubmit(){ const formData = new FormData(); const...
asked by 19.05.2018 / 02:00
2
answers

Custom input component

Hello, I have a form 'Reactive Forms' where it has several fields, so I decided to create a component and run a ngFor in it to reduce the number of lines ... Component html <div *ngFor='let input of inputs' class="input-size-{{input.s...
asked by 27.04.2018 / 19:28
1
answer

ionic - save latitude and longitude on firebase

I created a project in ionic and I would like that when the user clicked on "save location", the position where he left the marker was saved in his user profile in firebase, however, I have no idea how to get the latitude and the length of the m...
asked by 27.10.2017 / 20:46
0
answers

How to set up the quaggaJS for Brazil tickets?

Hello I am testing the quaggajs sandbox and would like to know if anyone has already made specific settings for the operation in Brazil. I tried to run the sandbox that is made available on the site, but it reads the consumer account and does no...
asked by 16.10.2017 / 20:41
1
answer

How to use the reference of a file of a barrel in the same folder with Typescript

I'm having trouble making reference to files that are in the same folder when working with a file of type barrel in my project is in Angular (version: ^ 4.0.0). My problem is this, look at the structure of files and directories below: |-app...
asked by 03.07.2017 / 16:54
0
answers

Intercept all HTTP requests from angular2

I am looking for a way to intercept all HTTP requests made by angular and add some headers . In versions prior to angular2 RC5 (before NgModule ) it was this way, for example: class MyOptions extends BaseRequestOptions { Auth...
asked by 30.09.2016 / 20:32