mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 20:02:40 +08:00
docs: update transfer-http docs
Remove redundant section
This commit is contained in:
parent
818b4d9256
commit
2edfc30f9a
@ -26,22 +26,6 @@ import {TransferHttpCacheModule} from '@nguniversal/common';
|
||||
export class AppBrowserModule() {}
|
||||
```
|
||||
|
||||
You don't have to import anything extra in your AppServerModule.
|
||||
|
||||
```ts
|
||||
import { NgModule } from '@angular/core';
|
||||
import { ServerModule } from '@angular/platform-server';
|
||||
|
||||
import { AppModule } from './app.module';
|
||||
import { AppComponent } from './app.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [AppModule, ServerModule],
|
||||
bootstrap: [AppComponent],
|
||||
})
|
||||
export class AppServerModule {}
|
||||
```
|
||||
|
||||
Finally, in `main.ts` change this:
|
||||
|
||||
```ts
|
||||
|
Loading…
x
Reference in New Issue
Block a user