Skip to content

Instantly share code, notes, and snippets.

@ashikjs
Forked from ravipatel2293/movie.store.ts
Last active May 29, 2019 11:48
Show Gist options
  • Save ashikjs/31a1c8f536ac369249c9492dc4e6ecdd to your computer and use it in GitHub Desktop.
Save ashikjs/31a1c8f536ac369249c9492dc4e6ecdd to your computer and use it in GitHub Desktop.
remove unused code or line
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
@Injectable()
export class MovieStore {
public movieStore$: BehaviorSubject<any>;
public movieStates = [{
name: 'Movie 1',
url: 'http://google.com'
}];
constructor() {
this.movieStore$ = new BehaviorSubject(this.movieStates);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment