mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
feat: new control flow
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user