Additions/52 lazy load component (#963)

* feat: create challenge 52 on lazy load component

Initial boilerplate from `nx g @angular-challenges/cli:challenge`

* feat: revert to NgModule

Copy of 31

* feat: initial version of starting point

* feat: add documentation

* feat: pr tweaks

Add author file
Remove thomas from the contributor list
Add a more direct hint

* feat: pr tweaks

Update "Go to the latest Challenge" link
This commit is contained in:
Lance Finney
2024-05-27 10:27:15 -05:00
committed by GitHub
parent a07954fa73
commit c8ba057fe0
29 changed files with 397 additions and 20 deletions

View File

@@ -0,0 +1,22 @@
import { Component, signal } from '@angular/core';
@Component({
selector: 'app-root',
template: `
<div class="h-screen bg-gray-500">
@if (topLoaded()) {
<app-top />
} @else {
<app-placeholder />
<button
class="rounded-sm border border-blue-500 bg-blue-300 p-2"
(click)="topLoaded.set(true)">
Load Top
</button>
}
</div>
`,
})
export class AppComponent {
topLoaded = signal(false);
}