export class NgIfNgForComponent implements OnInit { numero:number; constructor() { } ngOnInit(): void { } }
<input type="text" (input)="numero = $event.target.value"/> <h1 *ngIf="numero > 5">Pronto</h1>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)