@nguniversal/common
Advanced tools
Comparing version 5.0.0-beta.5 to 5.0.0-beta.6
{ | ||
"name": "@nguniversal/common", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"version": "5.0.0-beta.5", | ||
"description": "Angular Universal common ", | ||
"homepage": "https://github.com/angular/universal", | ||
"version": "5.0.0-beta.6", | ||
"description": "Angular Universal common utilities", | ||
"main": "./bundles/common.umd.js", | ||
"module": "./esm5/common.es5.js", | ||
"es2015": "./esm2015/common.js", | ||
"typings": "./common.d.ts", | ||
"license": "MIT", | ||
"keywords": [ | ||
"ssr", | ||
"universal" | ||
], | ||
"peerDependencies": { | ||
"@angular/common": "^5.0.0", | ||
"@angular/core": "^5.0.0" | ||
}, | ||
"repository": { | ||
@@ -16,23 +25,3 @@ "type": "git", | ||
}, | ||
"config": { | ||
"engine-strict": true | ||
}, | ||
"engines": { | ||
"node": ">= 6.9.0", | ||
"npm": ">= 3" | ||
}, | ||
"peerDependencies": { | ||
"@angular/common": "^5.0.0-rc.6", | ||
"@angular/core": "^5.0.0-rc.6" | ||
}, | ||
"devDependencies": { | ||
"@angular/animations": "^5.0.0-rc.6", | ||
"@angular/common": "^5.0.0-rc.6", | ||
"@angular/core": "^5.0.0-rc.6", | ||
"@angular/platform-browser": "^5.0.0-rc.6", | ||
"@angular/platform-server": "^5.0.0-rc.6", | ||
"rxjs": "^5.2.0", | ||
"typescript": "2.4.2", | ||
"zone.js": "^0.8.12" | ||
} | ||
"homepage": "https://github.com/angular/universal" | ||
} |
@@ -21,6 +21,4 @@ # Angular Universal Common Module | ||
To use the `TransferHttpCacheModule` just install it as part of the top-level App module. | ||
To use the `TransferHttpCacheModule`, first install it as part of the top-level App module. | ||
That's it! | ||
```ts | ||
@@ -38,1 +36,42 @@ import {TransferHttpCacheModule} from '@nguniversal/common'; | ||
``` | ||
Then, import `ServerTransferStateModule` in your Server module. | ||
```ts | ||
import { NgModule } from "@angular/core"; | ||
import { | ||
ServerModule, | ||
ServerTransferStateModule | ||
} from "@angular/platform-server"; | ||
import { AppModule } from "./app.module"; | ||
import { AppComponent } from "./app.component"; | ||
@NgModule({ | ||
imports: [ | ||
AppModule, | ||
ServerModule, | ||
ServerTransferStateModule | ||
], | ||
bootstrap: [AppComponent] | ||
}) | ||
export class AppServerModule {} | ||
``` | ||
Finally, in `main.ts` change this: | ||
```ts | ||
... | ||
platformBrowserDynamic().bootstrapModule(AppBrowserModule); | ||
``` | ||
To this: | ||
```ts | ||
... | ||
document.addEventListener("DOMContentLoaded", () => { | ||
platformBrowserDynamic() | ||
.bootstrapModule(AppBrowserModule) | ||
.catch(err => console.log(err)); | ||
}); | ||
``` |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
53952
0
21
533
76
1
1
2
1