├── .gitignore ├── .vscode ├── launch.json └── tasks.json ├── README.MD ├── app ├── app.component.ts └── boot.ts ├── index.html ├── package.json └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | app/*.js 3 | app/*.map -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "name": "Launch", 6 | "type": "node", 7 | "request": "launch", 8 | "program": "${workspaceRoot}/node_modules/lite-server/bin/lite-server", 9 | "stopOnEntry": false, 10 | "args": [], 11 | "cwd": "${workspaceRoot}", 12 | "runtimeExecutable": null, 13 | "runtimeArgs": [], 14 | "env": { 15 | "NODE_ENV": "development" 16 | }, 17 | "console": "integratedTerminal", 18 | "sourceMaps": false 19 | }, 20 | { 21 | "name": "Attach", 22 | "type": "node", 23 | "request": "attach", 24 | "port": 5858 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.1.0", 3 | 4 | // The command is tsc. Assumes that tsc has been installed using npm install -g typescript 5 | "command": "tsc", 6 | 7 | // The command is a shell script 8 | "isShellCommand": true, 9 | 10 | // Always show output window. 11 | "showOutput": "always", 12 | 13 | // args is the HelloWorld program to compile. 14 | "args": [], 15 | 16 | // use the standard tsc problem matcher to find compile problems 17 | // in the output. 18 | "problemMatcher": "$tsc" 19 | } -------------------------------------------------------------------------------- /README.MD: -------------------------------------------------------------------------------- 1 | This project contains the files necessary to run the Angular 2 Quick Start (TypeScript version) from within Visual Studio Code (VS Code). 2 | 3 | These VS Code configuration files have been added to support TypeScript compilation and running the application: 4 | 5 | * .vscode/launch.json - configuration required to start the lite-server module used to host the application when run through VS Code 6 | * .vscode/tasks.json - configuration required to run the TypeScript compiler in watch mode to re-compile .ts files on save -------------------------------------------------------------------------------- /app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from 'angular2/core'; 2 | 3 | @Component({ 4 | selector: 'app', 5 | template: '