문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 다음 판 | 이전 판 | ||
| angular:ngswitch [2019/01/15 02:10] – 만듦 taekgu | angular:ngswitch [2025/04/15 10:05] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ===== ngSwitch ===== | ===== ngSwitch ===== | ||
| - | < | + | < |
| <div [ngSwitch]=" | <div [ngSwitch]=" | ||
| <div *ngSwitchCase="' | <div *ngSwitchCase="' | ||
| 줄 7: | 줄 7: | ||
| <div *ngSwitchDefault> | <div *ngSwitchDefault> | ||
| </ | </ | ||
| + | </ | ||
| + | <code javascript> | ||
| + | export class TestNgswitchComponent implements OnInit { | ||
| + | public color = " | ||
| + | constructor() { } | ||
| + | ngOnInit() { | ||
| + | } | ||
| + | } | ||
| </ | </ | ||