Questions tagged as 'angular-5'

2
answers

How do I manipulate 3 Checkbox in Angular 2?

I have 3 Checkboxes. The first option is bread, the second option is fish and the third has salt. I want to use Tamplate forms and not reactive forms. Can someone help me? <form #form="ngForm"> <label> <input n...
asked by 29.09.2018 / 18:27
1
answer

Redirect to page after API consumption

I have two components in my application made with Angular 5+. A component is a form, where I populate parameters that are passed in a GET to my REST API. This form (component1) retrieves the JSON from the API, however I need to retrieve the in...
asked by 16.05.2018 / 22:40
1
answer

Bypass the error "object property does not exist"

I have the following problem, always when processing the result of the request http in subscribe points errors saying that property x does not exist in result return this.http.get('url').subscribe(result => { if (...
asked by 10.03.2018 / 12:10
1
answer

Does anyone know how to Validate if the CPF exists in Angular 2+ or not? I'm looking for and I can not find anything

I'm looking for a way to validate whether the CPF is valid or not in Angular 2+. I've searched a lot for the internet but I do not find anything specific. Someone can help me on this, I'm a rookie in Angular.     
asked by 05.12.2018 / 18:00
0
answers

Angular 5 update with forEach correct only in the first items

I'm trying to run two functions, calculoDes() and desempenhos() , in Angle 5, but strange behavior occurs as a result. The first function calculates in some phases, always generating an object Array for the next step. The steps a...
asked by 09.12.2018 / 01:28
1
answer

Angular 2 base64 image how to use?

I have an "ERR_INVALID_URL" error and it does not load the image. Does anyone know how to solve it? My html and Ts are like this. //Aqui está vindo a url do servidor let a = value.params["dataBuffer"]; //Aqui estou convertendo o b...
asked by 02.10.2018 / 21:25
1
answer

Can not read property 'token' of undefined when receiving object from angular localstorage

My login function stores a token returned from api in localstorage : localStorage.setItem('token', res.data.token); Soon after logging in, I need to pass this token to another function, but I can not get my variable to receive the t...
asked by 23.07.2018 / 18:29
0
answers

Bind of fields in dynamic form Angular 5

I have a form that will be created in a totally dynamic way: <form id="custom-asset-form" #form="ngForm" (ngSubmit)="saveAsset(form)"> <div *ngIf="asset"> <app-ad-child [adItem]="asset"></app-ad-child> </div>...
asked by 13.07.2018 / 17:03
0
answers

Accessing modules via address bar

I finished today the integration of a project using Angular 5 + Laravel. Before the integration, I could normally access the pages by typing in the address bar, for example: 127.0.0.1/app/appexample, but currently after the integration, when try...
asked by 10.07.2018 / 15:54
0
answers

Angular 5+ Create a timer that informs, seconds, minutes, hours, etc.

Well, I need to start a timer in the application, when it enters the device page, and when I click on stop, I'll save that time information and perform specific calculations. This is the part of my functional code, here I can count the second...
asked by 01.07.2018 / 23:39