Posts by Albert Bitencourt • 64 points
6 posts
-
0
votes3
answers824
viewsA: Angular 7 - Reactive Form update template
Have you tried using the Eventemitter? An exit would be to use the Eventemitter Event in a son Component Function and send to the father.
angularanswered Albert Bitencourt 64 -
1
votes1
answer28
viewsA: Oninit variable upgrade - Angular 2
You can leave this variable in the service and feed it as soon as you receive the value of the webservice. and when it is false, you analyze if this variable is with value if it is null ai yes you…
-
0
votes1
answer49
viewsA: Is it bad practice to check Auth in the Components I want to crash?
The practice that use is described in the angular doc using a service with a method called Canactived and placing validation on the routes. Example: auth-Guard.service.ts import { Injectable } from…
-
0
votes1
answer435
viewsA: Recover Header from an angular Http Response
You can read the header return this way: http .get<any>('url', {observe: 'response'}) .subscribe(resp => { console.log(resp.headers.get('authorization')); });…
-
2
votes4
answers55577
viewsA: How to validate client-side CPF with script?
I made one in javascript using the IRS algorithm. The method takes a string without dots and dashes and returns a bool whether it is valid or not. function VerificaCPF(strCpf) { var soma; var resto;…
-
1
votes3
answers163
viewsA: Viewdata is not displaying message
Try to use it straight: @ViewData["Feedback"]