Posts by diogoLima • 121 points
5 posts
-
0
votes6
answers674
viewsA: Angular 6: Selected does not work with [(ngModel)] and (ngSubmit)="onsubmit()
Just take the [(ngModel)]="cliente.carros" of select and it automatically puts the preselected. I tested in the stackblitz and it worked.
-
4
votes1
answer38
viewsA: Field disabled if condition is true
use the property disabel in the components by placing this property in the input [disabled]="parcelasPagas"
-
1
votes1
answer782
viewsA: Angular 7 - Open imported component in another module
Expressly so {path: 'RouteName', loadChildren: () => NomeModulo}
-
3
votes1
answer31
viewsA: I can’t pass a value to a variable
This error has to do with the Subscribe being async so it doesn’t get stuck in it so the console.log that is out of subscription when it runs still has no value to var
-
1
votes1
answer84
viewsA: can not read Property 'map' of Undefined
Squeal like that ngOnInit() { this.categoriesService.read().subscribe(categories =>{ this.form = this.formBuilder.group({ id: [null], title: [null, [Validators.required,…