Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Component({
- selector: 'movie-showings-component',
- templateUrl: './movie-showings.component.html'
- })
- export class MovieShowingsComponent {
- public movieTitle: string;
- public showings: string[];
- constructor(private backend: Backend) {}
- selectMovie(movieTitle: string) {
- this.movieTitle = movieTitle;
- this.backend.getShowings(movieTitle).subscribe(showings => {
- this.showings = showings;
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement