Guest User

Untitled

a guest
May 27th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. import { MovieStore } from './../movie.store';
  2. import { Component, OnInit } from '@angular/core';
  3.  
  4. @Component({
  5. selector: 'app-read-movie',
  6. templateUrl: './read-movie.component.html',
  7. styleUrls: ['./read-movie.component.css']
  8. })
  9. export class ReadMovieComponent implements OnInit {
  10. public movieList: any;
  11. constructor(private _movieStore: MovieStore) { }
  12.  
  13. ngOnInit() {
  14. this._movieStore.movieStore$.subscribe((data) => {
  15. this.movieList = data;
  16. console.log(this.movieList);
  17.  
  18. }, (error) => { });
  19.  
  20.  
  21. }
  22.  
  23. }
Add Comment
Please, Sign In to add comment