發表文章

目前顯示的是 1月 26, 2019的文章

How to use ReplaySubject such that its observers can fire repeatedly when it subscribes to a new observable?

圖片
0 I am trying to figure how to use ReplaySubject such that its observers can fire repeatedly when it subscribes to a new observable (e.g. HTTP GET). This is provider that I used: export class CatalogService { public borrow$: ReplaySubject<Borrow> = new ReplaySubject<Borrow>(null); constructor(public http: HttpClient) { } public getBorrowView() { this.http.get<Borrow>(apiUrl + 'Borrow/View').subscribe(this.borrow$); } ... } I have two observers - one in the main component and the other in the uninstantiated child component. The observer in the main component subscribe in the following manner: this.catalogService.borrow$.subscribe( borrowList => { if (borrowList != null) this.pages[1].badge = borrowList.length...

Valencia CF

圖片
For other uses, see Valencia CF (disambiguation). Valencia F.C. Full name Valencia Club de Fútbol SAD Nickname(s) Los Che Els Taronges (The Oranges) Valencianistes Los Murciélagos (The Bats) Short name VCF, VAL Founded 18 March 1919 ; 99 years ago  ( 1919-03-18 ) Ground Mestalla Capacity 49,800 [1] Owner Peter Lim [2] [3] President Anil Murthy Head coach Marcelino League La Liga 2017–18 La Liga, 4th Website Club website Home colours Away colours Third colours Current season Valencia Club de Fútbol ( Spanish:  [baˈlenθja ˈkluβ ðe ˈfuðβol] , Valencian: València Club de Futbol [vaˈlensia ˈklub de fubˈbɔl] ; [4] also known as Valencia CF , Valencia or Los Che ) is a Spanish football club based in Valencia. They play in La Liga. Valencia have won six La Liga titles, seven Copa del Rey titles, two Inter-Cities Fairs Cups (the predecessor to the UEFA Cup), one UEFA ...