Created
September 2, 2016 14:47
-
-
Save i-van/fbdbb4e21718b3486ed17d06788ea5f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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