Health Topic Library

PHP, JS, CSS, Python, and Machine Learning Technology

Browse trusted health articles by topic. Use the filters and A-Z index to quickly find related medical content.

526 articlesUpdated medical education library

A-Z article index

H

Latest articles

RX
Health Topic Library

ControlValueAccessor

ControlValueAccessor interface gives us the power to leverage the Angular forms API, and create a connection between it and the DOM element. The major benefits we gain...

Read article
RX
Health Topic Library

Observation Chain

When discussing and documenting observables, it’s important to have a common language and a known set of rules around what is going on. This document is...

Read article
RX
Health Topic Library

Angular and RxJS

According to original Documentation the pipable operator is that function take observables as a input and it returns another observable .previous observable stays unmodified. pipe(...fns: UnaryFunction<any,...

Read article
RX
Health Topic Library

CombineLatest

Combines multiple Observables to create an Observable whose values are calculated from the latest values of each of its input Observables. Whenever any input Observable emits...

Read article
RX
Health Topic Library

Angular-httpclient-unsubscribe

Is there a need to unsubscribe from the Observable the Angular HttpClient’s methods return? For example: this.http.get(url).subscribe(x => this.doSomething()); Do I need to unsubscribe from this...

Read article
RX
Health Topic Library

DONT’T need to unsubscribe when using async pipe.

Short ANS we DONT’T need to unsubscribe when using async pipe. export class AsyncPipeCardComponent implements OnInit { messageSubscription: Observable<string>; constructor(private upperCaseService: UpperCaseService) {} ngOnInit() { this.messageSubscription...

Read article
RX
Health Topic Library

Streams to Components Directly

One of the most important aspects of software architecture might be the concept of decoupling pieces of code. Therefore we could consider passing streams to child...

Read article
RX
Health Topic Library

BehaviourSubject 

BehaviourSubject – Requires an initial value and emits the current value to new subscribers. One of the variants of the Subject is the BehaviorSubject. The BehaviorSubject has...

Read article
RX
Health Topic Library

ngOnChanges

ngOnChanges runs whenever any of the inputs change, if you use setter/getters for the inputs you want to listen to they will only run when that input...

Read article
RX
Health Topic Library

ViewEncapsulation

The Emulated mode is the default one. This allows that styles from main HTML propagate to the component but styles defined in this component’s @Component decorator...

Read article
RX
Health Topic Library

Method-in-Typescript

They are part of good old Javascript. Accessor properties are represented by “getter” and “setter” methods. In an object literal they are denoted by get and...

Read article
RX
Health Topic Library

Typescript Class

Typescript allows for non-method properties, similar to this Stage 3 proposal. In fact, declaration of each instance method or property that will be used by the...

Read article
RX
Health Topic Library

Route-Parameters

Say we are creating an application that displays a product list. When the user clicks on a product in the list, we want to display a...

Read article
RX
Health Topic Library

Hot vs Cold Observables

Subjects are used for multicasting Observables. This means that Subjects will make sure each subscription gets the exact same value as the Observable execution is shared...

Read article
RX
Health Topic Library

Http’s Observable

A very simple example usecase in an angular component file – accessControl.component.ts – which is using reselect package – I have the following @select(currentRolesListDataSelector) accessControl$: Observable<Role[]>; accessControl:...

Read article