set_account_token ( token : any ) { this.account_token = token; this.account_token_subject.next ( this.account_token ); }
private resizeFn ( e: any ) { let adjusted_height: number = e ? e.target.innerHeight : this.current_height; adjusted_height -= this.get_height_header ( ); adjusted_height -= this.get_height_footer ( ); if ( 0 > adjusted_height ) adjusted_height = 240; this.current_height = adjusted_height - 6; this.content_height = `${adjusted_height}px`; this.content.next ( adjusted_height ); }
on_mousemove ( event ) : string { let retval = this.get_element_type ( event ); if ( this.content_current !== retval ) { this.content_current = retval; this.content_subject.next ( this.content_current ); } return retval; }
function logout() { // remove user from local storage to log user out localStorage.removeItem('currentUser'); currentUserSubject.next(null); }
public toggle() { if (this.disabled) { return this.disabled; } this.state.next({ ...this.state.getValue(), display: !this.state.getValue().display, event: !this.state.getValue().display ? 'open' : 'close' }); this.opened = this.state.getValue().display; }
getProblems(): Observable<Problem[]> { this.httpClient.get('api/v1/problems') .toPromise() .then((res: any) => { this._problemSource.next(res); }) .catch(this.handleError); return this._problemSource.asObservable(); }
export function injectEpics(key: string, newEpics: Epic<Action, LifeStore>, newDependencies?: {}): void { Object.assign(dependencies, newDependencies); epics.next(newEpics); // newEpics.map((epic: Epic<Action, LifeStore>) => epics.next(epic)); console.log(`${key} page Epic is loaded!`); }
increment() { const v = subject$.value; subject$.next( v +1 ); }
set_account_token ( token : any ) { this.account_token = token; this.account_token_subject.next ( this.account_token ); }
private resizeFn ( e: any ) { let adjusted_height: number = e ? e.target.innerHeight : this.current_height; adjusted_height -= this.get_height_header ( ); adjusted_height -= this.get_height_footer ( ); if ( 0 > adjusted_height ) adjusted_height = 240; this.current_height = adjusted_height - 6; this.content_height = `${adjusted_height}px`; this.content.next ( adjusted_height ); }
on_mousemove ( event ) : string { let retval = this.get_element_type ( event ); if ( this.content_current !== retval ) { this.content_current = retval; this.content_subject.next ( this.content_current ); } return retval; }
set_account_token ( token : any ) { this.account_token = token; this.account_token_subject.next ( this.account_token ); }
private resizeFn ( e: any ) { let adjusted_height: number = e ? e.target.innerHeight : this.current_height; adjusted_height -= this.get_height_header ( ); adjusted_height -= this.get_height_footer ( ); if ( 0 > adjusted_height ) adjusted_height = 240; this.current_height = adjusted_height; this.content_height = `${adjusted_height}px`; this.content.next ( adjusted_height ); }
function logout() { // remove user from local storage to log user out localStorage.removeItem('currentUser'); currentUserSubject.next(null); }
decrement() { const v = subject$.value; subject$.next( v -1 ); }