I was wondering what is different between putting @Inject in front and without putting the @Inject? Please find bellow the 2 block of code:
//With @Inject
import {Inject} from 'angular2/core';
import {Http} from 'angular2/http';
export class MyApp {
constructor(@Inject(Http) http) {
this.http = http;
}
...
}
Without @Inject
//Without @Inject
import {Http} from 'angular2/http';
export class MyApp {
constructor(Http http) {
this.http = http;
}
...
}