Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. @Component({
  2. selector: 'movie-showings-component',
  3. templateUrl: './movie-showings.component.html'
  4. })
  5. export class MovieShowingsComponent {
  6. public movieTitle: string;
  7. public showings: string[];
  8.  
  9. constructor(private backend: Backend) {}
  10.  
  11. selectMovie(movieTitle: string) {
  12. this.movieTitle = movieTitle;
  13.  
  14. this.backend.getShowings(movieTitle).subscribe(showings => {
  15. this.showings = showings;
  16. });
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement