Posts by Geisson Da Silva • 35 points
9 posts
-
-2
votes1
answer15
viewsA: How to center both?
If you want to center in the center, you can use the screen to use the mainAxisAlign property, but if you want the two items with different heights to center on each other, use cross-Axis-center. I…
flutteranswered Geisson Da Silva 35 -
0
votes1
answer56
viewsA: How to dynamically update DOM <datalist> with Angular?
First to assemble the options ngfor is used as below: <datalist id="email-domain"> <option *ngfor="let item of domainList" [value]="item" >{{item}}</option> </datalist> Then…
-
0
votes1
answer61
viewsA: Date Component in American Standard in Angular
Try adding the following to your module: {provide: MAT_DATE_LOCALE, useValue: 'pt-BR'}, If this does not work try to search the documentation by date-picke provide formats and put the format (date…
-
0
votes2
answers104
viewsA: Change background color of a table Row using checkbox
At met-Cell inside your table use a [ngClass] or [ngStyle] that can solve your problem, for example: [ngClass]="{'row-selected': item.checked === true}"
-
0
votes1
answer203
viewsA: Disable Components with Angular
If you have form components inside your table I believe that the best way is to use a formGroup and disable the entire form. If it contains only buttons to disable, you can use the property via…
-
0
votes2
answers423
viewsA: How to make a [GET] request with custom headers in Angular 10?
Try this: let headers = new HttpHeaders() .append('Authorization', accessToken) .append('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8') .append('access-control-allow-origin',…
-
0
votes1
answer34
viewsA: Angular - Custom Matform Validator does not work
I suggest creating this Validator in formGroup instead of creating directly in formControls, and instead of passing the values to your Validator, pass formControls directly and extract their values.…
angularanswered Geisson Da Silva 35 -
0
votes1
answer104
viewsA: Version conflict errors when running Angular 4.2 project
Try deleting the node_modules folder. Then delete the package-lock.json file After that check the typescript version on your machine, not in the project, and leave it with the same suggested version…
-
0
votes2
answers167
viewsA: Pass value to array - angular
In formArray you need to include a list of abstractControls, as in the example below: this.form = this.formBuilder.group({ telefones: this.formBuilder.array([]) }); const telefones = ['(00) 0000 -…