https://github.com/angular/ts-quickstart
Hello world for Angular 2 and TS
https://github.com/angular/ts-quickstart
Last synced: 9 months ago
JSON representation
Hello world for Angular 2 and TS
- Host: GitHub
- URL: https://github.com/angular/ts-quickstart
- Owner: angular
- Archived: true
- Fork: true (rkirov/ng2-ts-hello)
- Created: 2015-04-27T19:55:07.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-11-09T16:31:02.000Z (over 10 years ago)
- Last Synced: 2024-09-26T11:04:23.521Z (almost 2 years ago)
- Language: JavaScript
- Size: 393 KB
- Stars: 29
- Watchers: 9
- Forks: 24
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Angular 2 app written in TypeScript
## Use latest TypeScript compiler
TypeScript 1.5 beta includes everything you need. Make sure to upgrade, even if you installed TypeScript previously.
$ npm install -g typescript@^1.5.0-beta
## Start up the compiler
$ cd ts-quickstart
$ tsc -w
message TS6042: Compilation complete. Watching for file changes.
## Use a TypeScript-aware editor
We have good experience using these editors:
* [Visual Studio Code](https://code.visualstudio.com/)
* [Webstorm 10](https://www.jetbrains.com/webstorm/download/)
* [Atom](https://atom.io/) with [TypeScript plugin](https://atom.io/packages/atom-typescript)
* [Sublime Text](http://www.sublimetext.com/3) with [Typescript-Sublime-Plugin](https://github.com/Microsoft/Typescript-Sublime-plugin#installation)
## Load the app
If you want to get up and running immediately, copy the completed sources:
$ cp complete/* .
From the directory that contains index.html:
$ npm install -g http-server # Or sudo npm install -g http-server
$ http-server # Creates a server at localhost:8080
# In a browser, visit localhost:8080/index.html