-
create git repository
-
prepare instructions
install yarn yarn global add @angular/cli ng config -g cli.packageManager yarn
-
create new angular project
ng new ntt-time --routing --prefix time --style sass
-
push to git
git remote add origin https://github.com/vaceslav/ntt-time.git git push -u origin master `username and password`
-
create branch for development
yarn start
-
remove unused content
-
edit vs code settings
"[typescript]": { "editor.formatOnSave": true }
-
create .prettierrc
{ "printWidth": 120, "singleQuote": true }
-
create new component: TimeEntry
ng g c components/entry
-
create new component: TimeEntryList
ng g c components/entry-list
-
create @Input()'s
-
create dummy data
-
create button: add item
yarn add @angular/material @angular/cdk
add ButtonModule
<button (click)="addItemClick()">Add Item</button>
extend style
@import "~@angular/material/prebuilt-themes/deeppurple-amber.css";
<button mat-raised-button color="primary" (click)="addItemClick()">Add Item</button>
create some styles for entry