Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
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.
The npm package ng-ssr-cli receives a total of 0 weekly downloads. As such, ng-ssr-cli popularity was classified as not popular.
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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.