mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
17 lines
502 B
Markdown
17 lines
502 B
Markdown
|
|
@name Invalid multi provider
|
||
|
|
@category runtime
|
||
|
|
@shortDescription Expected provider to be `multi: true` but did not get an Array
|
||
|
|
|
||
|
|
@description
|
||
|
|
|
||
|
|
The Angular runtime will throw this error when it injects a token intended to be used with `multi: true` but
|
||
|
|
a non-Array was found instead. For example, `ENVIRONMENT_INITIALIZER` should be provided
|
||
|
|
like `{provide: ENVIRONMENT_INITIALIZER, multi: true, useValue: () => {...}}`.
|
||
|
|
|
||
|
|
<!-- links -->
|
||
|
|
|
||
|
|
<!-- external links -->
|
||
|
|
|
||
|
|
<!-- end links -->
|
||
|
|
|
||
|
|
@reviewed 2022-11-28
|