feat: create challenge 48 without solution

This commit is contained in:
Timothy Alcaide
2024-04-10 02:06:31 +02:00
committed by thomas
parent 94171adfd1
commit c5dd953193
31 changed files with 462 additions and 30003 deletions

View File

@@ -0,0 +1,16 @@
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { FormComponent } from '../ui/form.component';
@Component({
standalone: true,
imports: [FormComponent],
template: `
<section class="mx-auto max-w-screen-sm">
<div class="rounded-lg bg-white p-8 shadow-lg lg:p-12">
<app-form />
</div>
</section>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class JoinComponent {}

View File

@@ -0,0 +1,17 @@
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
import { toSignal } from '@angular/core/rxjs-interop';
import { ActivatedRoute } from '@angular/router';
import { map } from 'rxjs';
@Component({
standalone: true,
template: `
<section>
<h1>{{ title() }}</h1>
</section>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class PageComponent {
title = toSignal(inject(ActivatedRoute).data.pipe(map((d) => d['title'])));
}