This example illustrates subscribing to the notifications observer. Click the button below to launch a notification, and view the logs in the console to see the subscription in action. This method of getting notifications becomes necessary when using the OnPush ChangeDetectionStrategy in Angular.

Code