UNPKG

@krai-tech/web-api

Version:

A set of common tokens for consuming Web API with Angular.

10 lines (9 loc) 429 B
import { InjectionToken } from '@angular/core'; /** * Injection token for the global userAgent string. * * This token provides an abstraction over the window.navigator.userAgent property, allowing it to be injected * into Angular services or components. It utilizes the NAVIGATOR injection token to access the userAgent * property of the global navigator object. */ export declare const USER_AGENT: InjectionToken<string>;