├── .gitignore
├── README.md
├── app
└── ts
│ ├── app.component.ts
│ └── main.ts
├── index.html
├── package.json
├── tsconfig.json
└── typings.json
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 | typings
3 | node_modules
4 | app/js/*
5 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | This is a base template for Angular 2. It contains the core files you will need when starting an Angular 2 project.
4 | To get started, follow the instructions below.
5 |
6 | ### Install Node.js and npm
7 |
8 | Download the latest version of Node.js if you do not already have it installed on your machine. This download will also
9 | include the latest version of npm.
10 |
11 | https://nodejs.org/en/download/
12 |
13 | ### Download this Repository
14 |
15 | Clone this repo into a new project folder. You may also download it as a ZIP file.
16 |
17 | https://github.com/buckyroberts/angular-2-template.git
18 |
19 | ### Install Libraries and Dependencies
20 |
21 | Once you have the files downloaded, navigate into the root project directory and run the following command. This will
22 | install all libraries and dependencies.
23 |
24 | `npm install`
25 |
26 | ### Run the Project
27 |
28 | Now you can start the TypeScript compiler in watch mode and run lite-server with automatic refreshing.
29 |
30 | `npm start`
31 |
32 | ***
33 |
34 | ### Angular 2
35 |
36 | - [angular.io](https://angular.io/) - Official website for Angular and Angular 2.
37 | - [Getting Started](https://angular.io/docs/ts/latest/quickstart.html) - Quick guide on how to get up and running.
38 | - [Forum](https://thenewboston.com/forum/category.php?id=111) - For Angular 2 related questions, news, and discussion.
39 | - [Reddit](https://www.reddit.com/r/Angular2/) - Subreddit for Google's next iteration of AngularJS.
40 |
41 | ### Other
42 |
43 | - [thenewboston](https://thenewboston.com/)
44 | - [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/)
45 | - [Twitter](https://twitter.com/bucky_roberts)
46 | - [Google+](https://plus.google.com/+BuckyRoberts)
47 | - [reddit](https://www.reddit.com/r/thenewboston/)
48 | - [Donate](https://www.patreon.com/thenewboston)
49 |
--------------------------------------------------------------------------------
/app/ts/app.component.ts:
--------------------------------------------------------------------------------
1 | import {Component} from 'angular2/core';
2 |
3 | @Component({
4 | selector: 'my-app',
5 | template: '