updated author's forms
This commit is contained in:
@@ -1,11 +1,29 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {Component, input} from '@angular/core';
|
||||
import {CreateAuthor} from "../../components/create-author/create-author";
|
||||
import {Modal} from "../../components/modal/modal";
|
||||
import {AuthorInfo} from "../../interfaces/author.interfaces";
|
||||
import {AuthorCard} from "../../components/author-card/author-card";
|
||||
|
||||
@Component({
|
||||
selector: 'app-author',
|
||||
imports: [],
|
||||
imports: [
|
||||
CreateAuthor,
|
||||
Modal,
|
||||
AuthorCard
|
||||
],
|
||||
templateUrl: './author.html',
|
||||
styleUrl: './author.css',
|
||||
})
|
||||
export class Author {
|
||||
authorInfo = input.required<AuthorInfo>();
|
||||
|
||||
authors: AuthorInfo[] = [
|
||||
{ name: 'Victor', firstName: 'Hugo' },
|
||||
{ name: 'J.K.', firstName: 'Rowling' },
|
||||
{ name: 'J.R.R.', firstName: 'Tolkien' },
|
||||
{ name: 'Frank', firstName: 'Herbert' },
|
||||
{ name: 'Ray', firstName: 'Bradbury' },
|
||||
{ name: 'George ', firstName: 'Orwell' }
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user