Questions tagged as 'angular'

1
answer

Problems with angular requests

Good afternoon, I'm starting a new stage and a few days later I'm stuck on a task that I can not understand the failure, I must make a registration form that communicates with an API already done and after many attempts the error persists: "Can...
asked by 04.12.2018 / 16:15
1
answer

Requisition before executing another request in the angle

After the user is logged in to my application, all the requests that he / she performs must first hit an API that will validate if the plan agrees. Is there any way to standardize the requisitions so that they always make this requisition and...
asked by 04.12.2018 / 16:56
1
answer

Download a file generated in the backend by Angular2 +

Hello, I'm having problems downloading a backend-generated file in my angled project, I have the following method generateXlsx(obj) { let headers = new Headers(); let token = localStorage.getItem('token'); let client = localStorage.getItem('cl...
asked by 03.12.2018 / 17:07
1
answer

How to change the CSS of the components of primeNG in Angular?

menu.component.html <p-menubar class="menuPerson" [model]="items"></p-menubar> menu.component.css .menuPerson{ background-color: olivedrab; font-size: 14px; } menu.component.ts import { Component, OnInit } f...
asked by 18.12.2018 / 13:43
0
answers

Help with router-outlet on login / registration screen

I'm trying to work with 3 components: A component that will be as a border to the Login / Log component, the registry component (RegistrarComponent), and the login component (LoginComponent). In my app.module is set to start through the...
asked by 18.12.2018 / 19:04
0
answers

JSON with dua collections, how to access in AngularJS 2x?

I have a JSON that has the data of the person and another collection with "accountsPogadors", how do I make my listing also show what is in "accountsplayers"? My JSON: { "nome": "Ramos Janones", "email": "[email protected]...
asked by 28.11.2018 / 21:37
0
answers

firebase return

I would like help with the return of firebase, this is the following, in my angular project I have a component with some fields to validate and a validation-only service, I am having difficulty getting a return as I need it, follow the code M...
asked by 04.12.2018 / 17:58
1
answer

How to hide bootstrap modal via typescript

Looking at the bootstrap documentation I saw that it has a specific method to hide the modal via jquery: .modal('hide') $('#myModal').modal('hide') The problem is that I use angular, so I need a way to call this function through typescript....
asked by 04.12.2018 / 20:58
2
answers

Angular 7 - Reactive Form update template

I have the following class in my template export class TelefoneNumero { id: number; numero: string; descricao: string; } export class Pessoa { constructor(){ this.telefones = []; }...
asked by 04.12.2018 / 21:04
0
answers

Angular 6 - Reactive Forms - load observable after clicking the form

form has the button been so I do post, and it only returns when I click on the formcontrolname of the form import { Component, OnInit, ViewChild, OnDestroy } from '@angular/core'; import { NavParams } from '@ionic/angular/dist/directives/navig...
asked by 29.11.2018 / 18:03