Angular.js 2 SPA boilerplate and tutorial written in plain JavaScript.
git clone https://github.com/josefmonje/angular2-spa-boilerplate.git
cd angular2-spa-boilerplate
npm install
python -m http.server # or your favorite server... this example is for Python 3
Browse to localhost:port (or 127.0.0.1:8000 in my case) to see the result.
Topics covered:
- Organizing your files
- Angular 2 boilerplate code
- Some additions and conventions this is boilerplate
- Creating a component
- Creating a new route
- Rendering a variable
- Call functions by clicking
- Creating and using a custom pipe
- Making an ajax call