-
Notifications
You must be signed in to change notification settings - Fork 773
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add Universal app changes to documentation
* Add details about building the Universal app to the Wiki * Add README files to the server and Bidi directories to explain their purposes * Remove unused `@angular/tsc-wrapped` * Add Universal app serve task
- Loading branch information
1 parent
816f1e6
commit 1cf8a81
Showing
8 changed files
with
112 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This directory contains a mirror of the Angular CDK `BidiModule`. It is included in this package to | ||
avoid a direct dependency on `@angular/cdk`, which may be a burden to users. | ||
|
||
This package may/may not be removed in upcoming releases, so users are encouraged not to depend on it | ||
explicitly. If there are any issues encountered with the `BidiModule`, please file them in the | ||
Angular Material [repo](https://github.com/angular/material2/issues). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
This entrypoint consolidates the logic for running Flex Layout on the server. Because it uses Node.js | ||
APIs, it must be segmented into the server bundle. This also helps avoid including server code in the | ||
browser bundle. | ||
|
||
The main export for this entrypoint, the `FlexLayoutServerModule`, can be imported into a server module | ||
file, e.g. `app.server.module.ts` as follows: | ||
|
||
```typescript | ||
import {NgModule} from '@angular/core'; | ||
import {FlexLayoutServerModule} from '@angular/flex-layout/server'; | ||
|
||
@NgModule(({ | ||
imports: [ | ||
... other imports here | ||
FlexLayoutServerModule, | ||
] | ||
})) | ||
export class AppServerModule {} | ||
``` | ||
|
||
This module, in addition to handling all of the style processing/rendering before the Angular app is | ||
bootstrapped on the server, also substitutes the version of `MatchMedia` with a server-compatible | ||
implementation called `ServerMatchMedia`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters