APP_ID top-level constant

OpaqueToken<String> const APP_ID

A dependency injection token representing a unique ID for the application.

The identifier is used internally to apply CSS scoping behavior.

To avoid a randomly generated value, a custom value can be provided:

  bootstrapStatic(
    YourAppComponent,
    const [
      const Provider(APP_ID, useValue: 'my-unique-id'),
    ],
  )

Implementation

const APP_ID = OpaqueToken<String>('APP_ID');