Skip to content

Commit 4f2bc4d

Browse files
authored
fix(material/icon): update error message for missing HttpClient (#29589)
Updates the message saying that `HttpClient` is missing to refer to a non-deprecated API. Fixes #29587.
1 parent 5de822d commit 4f2bc4d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/material/icon/icon-registry.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ export function getMatIconNameNotFoundError(iconName: string): Error {
3939
*/
4040
export function getMatIconNoHttpProviderError(): Error {
4141
return Error(
42-
'Could not find HttpClient provider for use with Angular Material icons. ' +
43-
'Please include the HttpClientModule from @angular/common/http in your ' +
44-
'app imports.',
42+
'Could not find HttpClient for use with Angular Material icons. ' +
43+
'Please add provideHttpClient() to your providers.',
4544
);
4645
}
4746

0 commit comments

Comments
 (0)