From 58cbb2dff376bf583fedceafac2bbd8851f06046 Mon Sep 17 00:00:00 2001 From: Lay Mui Date: Sat, 27 Jun 2020 21:25:58 +0800 Subject: [PATCH] @autobind decorator replace bind(this) with autobind decorator --- README.md | 6 +- app.css | 1 - index.html | 6 +- src/app.ts | 363 ++++---------------------------------------------- tsconfig.json | 29 ++-- 5 files changed, 47 insertions(+), 358 deletions(-) diff --git a/README.md b/README.md index 4e6f568..08ccf18 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ -## Learning Typescript ## To get started - Run ``` npm i @@ -8,8 +6,10 @@ tsc -w npm start ``` +# To run typescript compilation in watch mode +# to rebuild the JS +tsc -w -tsc -w :To run typescript compilation in watch mode to rebuild the JS ### Using decorators for validation diff --git a/app.css b/app.css index 8aa73fc..c831cfc 100644 --- a/app.css +++ b/app.css @@ -91,7 +91,6 @@ button:active { box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.26); padding: 1rem; margin: 1rem; - background: white; } .projects li h2 { diff --git a/index.html b/index.html index a0fcc35..645b51c 100644 --- a/index.html +++ b/index.html @@ -27,11 +27,7 @@