Can the Http Service be initialized manually without needing it as a constructor argument?
export class SimpleGridServer {
private http: Http;
constructor(public options: SimpleServerData) {
http = new Http(.../* Argument here */);
}
}
To create an instance of this class.
var grid = new SimpleGridServer({/* options */});
I would like to instantiate this class without relying on the Http service in my component
that imports SimpleGridServer
.
If this is feasible, what are the implications of this situation?