show component
This commit is contained in:
20
src/app/modules/shows/list/list.component.ts
Normal file
20
src/app/modules/shows/list/list.component.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {Observable} from 'rxjs';
|
||||
import {Show} from '../services/show';
|
||||
import {ShowDataService} from '../services/show-data.service';
|
||||
import {fade} from '../../../animations';
|
||||
|
||||
@Component({
|
||||
selector: 'app-list',
|
||||
templateUrl: './list.component.html',
|
||||
styleUrls: ['./list.component.less'],
|
||||
animations: [fade]
|
||||
})
|
||||
export class ListComponent {
|
||||
public shows$: Observable<Show[]>;
|
||||
|
||||
constructor(showDataService: ShowDataService) {
|
||||
this.shows$ = showDataService.list$();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user