Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
ng-ssr-cli
Advanced tools
Readme
Angular2 server side rendering commandline client.
work with angular2-universal.
DON'T USE npm install -g ng-ssr-cli
$ ngssr --help
Usage: ngssr --templateHtml "<app></app>" --componentFile ./example/app.component.js --componentName AppComponent
Options:
--templateHtml <templateHtml> string oftemplate html
--templateFile <templateFile> path to template html file
--componentFile <componentFile> path to component js file
--componentName <componentName> component class name
--originUrl <originUrl> specify origin url
--baseUrl <baseUrl> specify base url
--reqUrl <reqUrl> specify request url
--outFile <outFile> output file of generated html
$ ngssr --templateHtml "<app>" --componentFile ./example/app.component.js
<html>
<head>
<title></title>
<style>
div[_ngcontent-eba-1] {
color: red;
}
</style>
</head>
<body>
<app _nghost-eba-1="">
<h1 _ngcontent-eba-1="">ng-ssr-cli demo!</h1>
<div _ngcontent-eba-1="">Hello, SSR!</div>
<a _ngcontent-eba-1="" href="/cat">Cat</a>
<a _ngcontent-eba-1="" href="/game">Game</a>
<router-outlet _ngcontent-eba-1="">
</router-outlet>
</app>
</body>
</html>
In your project.
$ npm install --save-dev ng-ssr-cli angular2-universal preboot @angular/platform-server
$ $(npm bin)/ngssr --templateFile <path to your html> --componentFile <path to your root component>
see example
$ git clone git@github.com:vvakame/ng-ssr-cli.git
$ cd ng-ssr-cli
$ npm install
$ npm run build:example
$ npm start
$ npm run run-ngssr
.....!
FAQs
Angular2 server side rendering commandline client.
We found that ng-ssr-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).