Skip to content
A simple Angular 2 website example using routes
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app add catch-all route May 10, 2016
images Port Angular 1 website with routes to Angular 2 Dec 22, 2015
.editorconfig style: different style Dec 23, 2015
.gitignore Revert "updating git ignore" Mar 16, 2016
LICENSE Port Angular 1 website with routes to Angular 2 Dec 22, 2015
README.md lock in angular versions + update typings format Jun 20, 2016
favicon.ico feature(build system): replace TSC with webpack Mar 16, 2016
index.html feature(build system): replace TSC with webpack Mar 16, 2016
karma.conf.js
package.json use correct version of rxjs Aug 5, 2016
spec-bundle.js updating to angular 2 rc1 May 10, 2016
tsconfig.json lock in angular versions + update typings format Jun 20, 2016
typings.json lock in angular versions + update typings format Jun 20, 2016
webpack.config.js updating to angular 2 rc1 May 10, 2016
webpack.test.config.js

README.md

Building an Angular 2 Website Using 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);
  • You must also have typings installed globally via npm i -g typings
  • Be sure that you have typings version 1.x

Getting Started

git clone https://github.com/simpulton/angular2-website-routes.git
cd angular2-website-routes
npm i
typings install
npm start

Then navigate your browser to 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.

You can’t perform that action at this time.