injectActiveElement
Created by Nevzat Topçu
Import
Usage
Basic
Create an Observable that emits when the active -focussed- element changes.
Use Outside of an Injection Context
The injectActiveElement
function accepts an optional Injector
parameter, enabling usage outside of an injection context.
API
Inputs
injector?: Injector
- Optional. Allows using the function outside of an Angular injection context.
Outputs
- Emits an Observable of active HTMLElement from the document.