This repo is part of a tutorial that aims to clarify how components communicate in angular 2.
To setup for this project you need Node and NPM, as well as Angular CLI.
Install node first on your computer, and check if you have NPM by writing npm -v into your console.
Angular CLI can be installed by node with the following: npm install -g angular-cli. You might need to use SUDO for authentication.
Then you need to clone this git repo git clone https://github.com/mariusmoe/webTutorial.git.
When you have cloned the repo, enter cd webTutorial/train-app in your console and type in npm install.
To run the angular app use the command ng serve.
The master branch will contain the answer to the tasks given in the tutorial.
The branch tutorial will contain a skeleton for the app, which you can use to follow the tutorial.
Use the code git checkout tutorial to change branch.