angular online playground code example
Example: install angular playground
# install
ng add angular-playground
# fix tsconfig.playground.json
"compilerOptions": {
...
"experimentalDecorators": true,
"lib": [
"es2018",
"dom"
],
...
# test
npm run playground
# Open http://127.0.0.1:4201/