Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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) => { });
- }
- }
Add Comment
Please, Sign In to add comment