Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- filtrarEstado(pais : Pais) : void{
- this.loading = true;
- this.estadoService.getEstadosPorPais(pais).subscribe(
- (data :any) => {
- this.estados = data.lista;
- this.loading = false;
- }
- );
- }
- <mat-form-field class="formulario-full-width">
- <mat-select placeholder="País" name="pais"
- [(ngModel)]="municipioBuscar.paisId"
- matTooltip="Deve selecionar um país">
- <mat-option (blur)="filtrarEstado(0)">Nenhum</mat-option>
- <mat-option *ngFor="let pais of paises" [value]="pais"
- (blur)="filtrarEstado(pais)">{{pais.descricao}}
- </mat-option>
- </mat-select>
- </mat-form-field>
Add Comment
Please, Sign In to add comment