Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions docs/src/app/pages/guide-viewer/guide-viewer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {ComponentFixture, TestBed} from '@angular/core/testing';
import {Observable} from 'rxjs';
import {ActivatedRoute, provideRouter} from '@angular/router';
import {GuideViewer} from './guide-viewer';
import {provideHttpClient} from '@angular/common/http';

const guideItemsId = 'getting-started';

Expand All @@ -21,11 +20,7 @@ describe('GuideViewer', () => {

beforeEach(() => {
TestBed.configureTestingModule({
providers: [
provideRouter([]),
{provide: ActivatedRoute, useValue: mockActivatedRoute},
provideHttpClient(),
],
providers: [provideRouter([]), {provide: ActivatedRoute, useValue: mockActivatedRoute}],
});
});

Expand Down
2 changes: 0 additions & 2 deletions docs/src/app/shared/doc-viewer/doc-viewer.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {Clipboard} from '@angular/cdk/clipboard';
import {provideHttpClient} from '@angular/common/http';
import {HttpTestingController, provideHttpClientTesting} from '@angular/common/http/testing';
import {Component, provideZoneChangeDetection} from '@angular/core';
import {TestBed} from '@angular/core/testing';
Expand All @@ -20,7 +19,6 @@ describe('DocViewer', () => {
providers: [
{provide: Clipboard, useValue: clipboardSpy},
provideRouter([]),
provideHttpClient(),
provideHttpClientTesting(),
provideZoneChangeDetection(),
],
Expand Down
5 changes: 1 addition & 4 deletions docs/src/assets/stackblitz/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@
*/

import {bootstrapApplication} from '@angular/platform-browser';
import {provideHttpClient} from '@angular/common/http';
import {VERSION as CDK_VERSION} from '@angular/cdk';
import {VERSION as MAT_VERSION} from '@angular/material/core';
import {MaterialDocsExample} from './example/material-docs-example';

console.info('Angular CDK version', CDK_VERSION.full);
console.info('Angular Material version', MAT_VERSION.full);

bootstrapApplication(MaterialDocsExample, {
providers: [provideHttpClient()],
}).catch(err => console.error(err));
bootstrapApplication(MaterialDocsExample).catch(err => console.error(err));
2 changes: 0 additions & 2 deletions docs/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* found in the LICENSE file at https://angular.dev/license
*/

import {provideHttpClient} from '@angular/common/http';
import {ErrorHandler, provideZoneChangeDetection} from '@angular/core';

import {LocationStrategy, PathLocationStrategy} from '@angular/common';
Expand All @@ -32,7 +31,6 @@ bootstrapApplication(MaterialDocsApp, {
anchorScrolling: 'enabled',
}),
),
provideHttpClient(),
provideZoneChangeDetection(),
],
}).catch(err => console.error(err));
2 changes: 0 additions & 2 deletions src/dev-app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// Load `$localize` for examples using it.
import '@angular/localize/init';

import {provideHttpClient} from '@angular/common/http';
import {
provideZonelessChangeDetection,
// tslint:disable-next-line:no-zone-dependencies -- Allow manual testing of dev-app with zones
Expand Down Expand Up @@ -51,7 +50,6 @@ function bootstrap(): void {
providers: [
provideRouter(DEV_APP_ROUTES),
provideNativeDateAdapter(),
provideHttpClient(),
{
provide: MATERIAL_ANIMATIONS,
useValue: {
Expand Down
Loading