feat: new control flow

This commit is contained in:
thomas
2023-11-30 14:11:15 +04:00
parent 5ab6f7e02c
commit 671c7bf8c3

View File

@@ -1,18 +1,17 @@
import { NgIf } from '@angular/common';
import { Component, Input } from '@angular/core'; import { Component, Input } from '@angular/core';
@Component({ @Component({
selector: 'unknown-person', selector: 'unknown-person',
standalone: true, standalone: true,
imports: [NgIf],
template: ` template: `
<div <div
class="bg-black absolute inset-0 z-10 text-white text-center text-3xl" class="bg-black absolute inset-0 z-10 text-white text-center text-3xl"
[style.height.%]="100 - step"> [style.height.%]="100 - step">
<div @if (step !== 100) {
class="relative top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" <div
*ngIf="step !== 100"> class="relative top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2">
Who is here? Who is here?
</div> </div>
}
</div> </div>
<div class="text-center text-white text-4xl">Happy Christmas !!!</div> <div class="text-center text-white text-4xl">Happy Christmas !!!</div>
<div class="container"> <div class="container">