[[oktatas:web:angular|< Angular]] ====== Angular Elemek rejtése ====== * **Szerző:** Sallai András * Copyright (c) Sallai András, 2021 * Licenc: [[https://creativecommons.org/licenses/by-sa/4.0/|CC Attribution-Share Alike 4.0 International]] * Web: https://szit.hu ===== [hidden] =====

Rejtés


Eredmény: {{result}}
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'app23'; result = 30; edited = false; showDiv() { this.edited = true; } } ===== *ngIf ===== Elavult az Angular 17-ben!

Rejtés


Eredmény: {{result}}
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'app23'; result = 30; edited = false; showDiv() { this.edited = true; } }