Skip to content

Instantly share code, notes, and snippets.

@ravipatel2293
Created May 22, 2018 15:42
Show Gist options
  • Save ravipatel2293/3505c06a14874f0647f11276f5eec416 to your computer and use it in GitHub Desktop.
Save ravipatel2293/3505c06a14874f0647f11276f5eec416 to your computer and use it in GitHub Desktop.
import { MovieStore } from './../movie.store';
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-read-movie',
templateUrl: './read-movie.component.html',
styleUrls: ['./read-movie.component.css']
})
export class ReadMovieComponent implements OnInit {
public movieList: any;
constructor(private _movieStore: MovieStore) { }
ngOnInit() {
this._movieStore.movieStore$.subscribe((data) => {
this.movieList = data;
console.log(this.movieList);
}, (error) => { });
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment