EDIT : Obviously this is outdated, now you provide your guard at the providers array in an NgModule. Watch other answers or official documentation
providers
Importing both HttpModule and HttpClientModule helped me.
HttpModule
HttpClientModule
import { HttpClientModule } from '@angular/common/http'; import { HttpModule } from '@angular/http';