updated author's forms

This commit is contained in:
2025-11-11 14:08:59 +01:00
parent 9ef353924f
commit ce21596610
23 changed files with 271 additions and 13 deletions

View File

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