Is it possible to instantiate Http Service manually without having it to put as a constructor argument?
export class SimpleGridServer {
private http: Http;
constructor(public options: SimpleServerData) {
http = new Http(.../* Argument here */);
}
}
To instantiate this class.
var grid = new SimpleGridServer({/* options */});
I want to instantiate this class without having a dependency on Http service for my component
that import SimpleGridServer
.
If this is possible, what is the drawback for this scenario?