https://github.com/sonujose/angular2-webpack
This is a simple Angular 2 website using the brand new router. It demonstrates how to build components, configure routes, inject services
https://github.com/sonujose/angular2-webpack
angular2 karma rxjs typescript
Last synced: 3 months ago
JSON representation
This is a simple Angular 2 website using the brand new router. It demonstrates how to build components, configure routes, inject services
- Host: GitHub
- URL: https://github.com/sonujose/angular2-webpack
- Owner: sonujose
- License: apache-2.0
- Created: 2016-11-14T09:18:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-15T12:17:07.000Z (over 9 years ago)
- Last Synced: 2025-06-26T23:18:09.915Z (about 1 year ago)
- Topics: angular2, karma, rxjs, typescript
- Language: TypeScript
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Building an Angular 2 Website Using Webpack and Routes
This is a simple Angular 2 website using the brand new router. It demonstrates how to build components, configure routes, inject services, and use the `@Input` decorator to bind properties to components.
## Dependencies
- You must have `node` and `npm` installed (via `brew install node` or [NodeJS.org](https://nodejs.org/en/));
- You must also have `typings` installed globally via `npm i -g typings`
- Be sure that you have `typings` version `1.x`
## Getting Started
```bash
git clone https://github.com/sonujose/Angular2-Webpack-Router-sample.git
cd Angular2-Webpack-Router-sample
npm i
typings install
npm start
```
Then navigate your browser to [http://localhost:3001](http://localhost:3001) and use the app.
## Testing
The test setup includes `webpack.test.config.js`, `spec-bundle.js`, and `karma.conf.js`. To run unit tests, execute `npm test` in your terminal.