Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

PawelGozdz/project-15-book-list

Repository files navigation


This is a very small and simple Angular app. You can add a book to the list (bookshelf)

Each newly added book has 'new' label Clicking on the book list item, you can change it's status

That's all :)


What I've learned here?

How to import modules from angular/core.
How to create a component using 'ng g c "element"'.
How to insert dynamic data through {{}}.
How to insert component into another component.
How to use *ngIf for conditional statements.
How to loop through an array and display items on the page.
How to use local references with '#element'.
How to add an event.
How to create a custom Event using EventEmitter<"data type">().
How to emit the event.
How to use @Inport() for making a component variable bindable from the outside of the element.
How to use @Output() to expose the component variable to the other components.
How to bind an element and pass the data between components and app.component.
How to access the element reference through @ViewChild.

How to type a particular type to a variable using TypeScript.


Angular1

This project was generated with Angular CLI version 7.0.4.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

project-15-book-list