Skip to content

Instantly share code, notes, and snippets.

@i-van
Created September 2, 2016 14:47
Show Gist options
  • Select an option

  • Save i-van/fbdbb4e21718b3486ed17d06788ea5f0 to your computer and use it in GitHub Desktop.

Select an option

Save i-van/fbdbb4e21718b3486ed17d06788ea5f0 to your computer and use it in GitHub Desktop.
export class ProductService extends BaseService {
private channelsObservable: Observable<ChannelsResponse>;
constructor (protected http: Http) {
super(http);
this.channelsObservable = this.makeRequest('channels').cache();
}
getChannels(): Observable<ChannelsResponse> {
return this.channelsObservable;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment