Recently, I have started playing with angular 2. It\'s awesome so far. So, i have started a demo personal project for the sake of learning using angular-cli. <
angular-cli
You need to add RouterMoudle into imports sections of the module containing the Header component
RouterMoudle
imports
Header