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 :)
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.
This project was generated with Angular CLI version 7.0.4.
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.
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
.
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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.