Skip to content

Commit

Permalink
refactor: add footer component
Browse files Browse the repository at this point in the history
  • Loading branch information
edbzn committed Nov 7, 2023
1 parent 681ca2d commit ee9b46d
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions projects/todo-mvc/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@ import { ChangeDetectionStrategy, Component } from '@angular/core';
import { TodoListComponent } from './todo-list.component';

@Component({
selector: 'app-root',
selector: 'app-footer',
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [TodoListComponent],
template: `
<app-todo-list />
<footer>
<strong>Fully zoneless Angular app</strong> using
<code>
<a
href="https://github.com/rx-angular/rx-angular/blob/master/libs/state/README.md"
>
&#64;rx-angular/state</a>
&#64;rx-angular/state</a
>
</code>
to manage state and
<code>
Expand All @@ -26,5 +25,17 @@ import { TodoListComponent } from './todo-list.component';
to detect changes.
</footer>
`,
}) class FooterComponent {}


@Component({
selector: 'app-root',
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [TodoListComponent, FooterComponent],
template: `
<app-todo-list />
<app-footer />
`,
})
export class AppComponent {}

0 comments on commit ee9b46d

Please sign in to comment.