mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
7ac94dd664
The "Providing HttpClient through dependency injection" documentation now shows that in case of a standalone boostraped app, the provideHttpClient is to include in the app.config.ts file. Also updated the http setup server communication example to align the new doc (adev) with the old one (aio). PR Close #52806
10 lines
271 B
TypeScript
10 lines
271 B
TypeScript
// #docplaster
|
|
// #docregion sketch
|
|
import { bootstrapApplication } from '@angular/platform-browser';
|
|
|
|
import {AppComponent} from './app/app.component';
|
|
import { appConfig } from './app/app.config';
|
|
|
|
bootstrapApplication(AppComponent, appConfig);
|
|
// #enddocregion sketch
|