Ejemplo n.º 1
0
export function getSidebarExpanded($state: Observable<AppLayout>) {
  return $state.select(state => state.sidebarExpanded);
}
Ejemplo n.º 2
0
export function isPlayerPlaying(state$: Observable<YoutubePlayerState>) {
  return state$.select(state => state.playerState)
    .map((playerState: YT.PlayerState) => playerState === 1);
}
Ejemplo n.º 3
0
// shared selectors
function getAppLayoutState(state$: Observable<EchoesState>) {
  return state$.select(state => state.appLayout);
}
Ejemplo n.º 4
0
export function getCurrentMedia(state$: Observable<YoutubePlayerState>) {
  return state$.select(state => state.media);
}