Last active
May 29, 2019 11:47
-
-
Save ravipatel2293/a110e50b373ff57a3e2681be168a71df to your computer and use it in GitHub Desktop.
This file contains 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
import { ADD_MOVIE } from './movie.actions'; | |
import { Http, Headers, Response } from '@angular/http'; | |
import { Injectable } from '@angular/core'; | |
import { Observable } from 'rxjs/Observable'; | |
import { Subject } from 'rxjs/Subject'; | |
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