This repository is based on the following udemy course
https://www.udemy.com/the-complete-guide-to-angular-2
npm install -g @angular/cli
ng new my-app
# Basic version
ng generate component myComponent
# Abbriviation version
mg g c myComponent
# If you do not need a spec file, execute the following command.
ng g c myComponent --spec false
# Parent component
ng g c recipes
# Children component
ng g c recpies/recipe-list
The following directories and files are created.
app/
└─ recipes/
├─ recipes.component.css
├─ recipes.component.html
├─ recipes.component.ts
└─ recipe-list/
├─ recipe-list.component.css
├─ recipe-list.component.html
└─ recipe-list.component.ts
yarn install
yarn add [email protected]
After that, add the following lines in angular.json file.
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"src/styles.css"
],
A Chrome and Firefox Dev Tools extension for debugging Angular applications.
https://augury.rangle.io/