mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
27 lines
522 B
TypeScript
27 lines
522 B
TypeScript
import {
|
|
UserComponent,
|
|
type User,
|
|
} from '@angular-challenges/static-dynamic-import/users';
|
|
import { Component } from '@angular/core';
|
|
import { RouterOutlet } from '@angular/router';
|
|
|
|
@Component({
|
|
imports: [UserComponent, RouterOutlet],
|
|
selector: 'app-root',
|
|
template: `
|
|
Author:
|
|
<sdi-user [user]="author" />
|
|
<router-outlet />
|
|
`,
|
|
host: {
|
|
class: 'flex flex-col',
|
|
},
|
|
})
|
|
export class AppComponent {
|
|
author: User = {
|
|
name: 'Thomas',
|
|
lastName: 'Laforge',
|
|
country: 'France',
|
|
};
|
|
}
|