Questions tagged as 'angular'

2
answers

Does the import order of components interfere with performance?

Today I wondered about an issue in the import order of components, be it Angular, React, or Vue. Does order of import of order-of-use components improve performance or nothing to see? Where everything is already built and js will only be resp...
asked by 24.08.2018 / 13:59
1
answer

Doubt about the map function

I have this object { "alunos": [ { "aluno": { "id": 1, "nome": "Genevieve Sipes", "status": "Ativo" }, "mensalidade": { "status...
asked by 28.01.2018 / 20:37
1
answer

Problems with insertion into an array

vm.categorias = function () { ConectaVagas('get', 'categorias').then(function (val) { vm.categorias = val; for (var a = 0; a < vm.categorias.length; a++) { console.log(a); // Aqui retorna 0,1,2,3 ( Número de cat...
asked by 03.07.2017 / 09:12
1
answer

Asynchronous angular responses 4

I am making a request, and I am expecting a return, however it is asynchronous, it may take time or not, in my case I just want to display a message on the screen. Hours it sends undefined and hours returns me the correct message. D...
asked by 16.06.2017 / 16:32
1
answer

Turn html page id inside ngFor to page ts

I have an * ngFor of an array object, I want to pass the id inside the button to the typescript for configuralos as links in a modal. Here is the syntax that I'm trying with no success: <ion-item *ngFor="let item of itens"> <ion-t...
asked by 26.01.2017 / 22:37
1
answer

Installing IOS application without having to go into the store

Is it possible to install an IOS application without going into the store? So how can I just download .apk and install on android? An example of what I'm talking about: link If you access the link and click on download it will ask if you...
asked by 30.11.2016 / 20:32
1
answer

Validate CPF in Angular 5 [duplicate]

Expensive, I would like to know how I can validate CPF in angle 5, I have already done several searches but so far nothing. I've already been able to perform email validation. Could you help me?     
asked by 05.10.2018 / 18:50
1
answer

Make reactive validation at angular with formgroup

I'm trying to put an error message in the template, but I'm not able to get into the validator I created. This is the validator: criarFormularioDeUsuario() { this.formularioLogin = this.fb.group({ email: ['', Validators.compose(...
asked by 18.12.2018 / 17:46
1
answer

Inherited class: error TS2554: Expected 5 arguments, but got 0

I have two classes in Angular 4 that are related by inheritance, however doing build gives an error:    error TS2554: Expected 5 arguments, but got 0. Parent class: constructor(protected http: Http, private router: Router,...
asked by 26.07.2018 / 16:18
1
answer

Form validation with angle 6

I have this form, very simple, with only one field and one button. I gave a required input, and when I write with the empty field and / or null, it does not record (correct), but it already changes to the list screen. That would be correct, if y...
asked by 26.07.2018 / 18:29