Files
library-frontend/src/app/pages/book/book.ts
2025-11-10 23:28:05 +01:00

30 lines
1.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Component } from '@angular/core';
import {BookInfo} from "../../interfaces/book.interfaces";
import {BookCard} from "../../components/book-card/book-card";
import {NzModalComponent} from "ng-zorro-antd/modal";
import {CreateModal} from "../../components/create-modal/create-modal";
import {CreateBook} from "../../components/create-book/create-book";
@Component({
selector: 'app-book',
imports: [
BookCard,
NzModalComponent,
CreateModal
],
templateUrl: './book.html',
styleUrls: ['./book.css'],
})
export class Book {
CreateBookComponent = CreateBook;
books: BookInfo[] = [
{ title: '1984', author: 'George Orwell', releaseYear: 1949 },
{ title: 'Le Seigneur des Anneaux', author: 'J.R.R. Tolkien', releaseYear: 1954 },
{ title: 'Dune', author: 'Frank Herbert', releaseYear: 1965 },
{ title: 'Fahrenheit 451', author: 'Ray Bradbury', releaseYear: 1953 },
{ title: 'Les Misérables', author: 'Victor Hugo', releaseYear: 1862 },
{ title: 'Harry Potter à lécole des sorciers', author: 'J.K. Rowling', releaseYear: 1997 },
];
}