angular2-go

Angular 2 Go !

Added by: Sam Deering

GitHub

Repository

johnpapa/angular2-go

Stats

Stars: 264

Watchers: 264

Forks: 127

Author

John Papa
John Papa

Module Description

Getting Started

Super simple Angular 2 app with 1 module and 2 routes

Get the Code

git clone https://github.com/johnpapa/angular2-go.git a2-go
cd a2-go
npm i

Just in Time (JiT) Compilation

Runs the TypeScript compiler and launches the app

npm start

Ahead of Time (AoT) Compilation

Runs the Angular AoT compiler, rollup, uglify for an optimized bundle, then launches the app

npm run start-aot

AoT + gzip

Runs AoT plus gzips and launches the app

gulp copy-aot-gzip
npm run aot
npm run rollup
http-server

Notes:

  • Use your favorite server in place of http-server
  • This could be scripted, obviously
  • lite-server does not launch gzipped files by default.

Module stats last updated: 2017-05-18 16:00:02

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!