| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
#Angular 2 starter
Instructions: Getting started with Angular 2
Based on https://github.com/angular-class/angular2-webpack-starter.
Besides app and app-simple there is my-app.
my-app has a simple top navigation with two sections 'Home' and 'Users'. It is a basic application to explore the component router in Angular 2.
//src/public/index.html 45 <!-- App script --> 46 <script src="/__build__/my-app.js"></script> 47 <!-- TODO: replace with /app-simple.js or /app.js -->
What you need to run this app:
Once you have those, you should install these globals with npm install --global:
After you have installed all dependencies you can now run the app. Run npm run server to start a local server using webpack-dev-server which will watch, build (in-memory), and reload for you. The port will be displayed to you as http://localhost:8080 (or if you prefer IPv6 then it's http://[::1]:8080/).
$ NODE_ENV=development npm run server # or either webpack-dev-server or npm run express$ npm run build # or webpack$ npm run watch # or webpack --watch| Back | FazBrowse Home | New Git URL |