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,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'])));
}