Repository navigation
Commit c7357bf
committed
docs: fix the cause of the missing ɵprov definition error on the NG0204 page
The page said `Token X is missing a ɵprov definition` happens when an
`InjectionToken` is used without a provider, but that case throws NG0201.
The error comes from a provider object for the token that has no
`useValue`, `useFactory`, `useExisting` or `useClass` key, such as
`{provide: TOKEN}` or a misspelled `usevalue`, so Angular tries to
create the token itself. Describe that cause and its fix.1 parent 4044cef commit c7357bf
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
0 commit comments