{"action":"created","issue":{"url":"https://api.github.com/repos/angular/universal/issues/985","repository_url":"https://api.github.com/repos/angular/universal","labels_url":"https://api.github.com/repos/angular/universal/issues/985/labels{/name}","comments_url":"https://api.github.com/repos/angular/universal/issues/985/comments","events_url":"https://api.github.com/repos/angular/universal/issues/985/events","html_url":"https://github.com/angular/universal/issues/985","id":322580129,"number":985,"title":"Angular 6 Universal Server Side Rendering","user":{"login":"laiwf94","id":25806015,"avatar_url":"https://avatars3.githubusercontent.com/u/25806015?v=4","gravatar_id":"","url":"https://api.github.com/users/laiwf94","html_url":"https://github.com/laiwf94","followers_url":"https://api.github.com/users/laiwf94/followers","following_url":"https://api.github.com/users/laiwf94/following{/other_user}","gists_url":"https://api.github.com/users/laiwf94/gists{/gist_id}","starred_url":"https://api.github.com/users/laiwf94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laiwf94/subscriptions","organizations_url":"https://api.github.com/users/laiwf94/orgs","repos_url":"https://api.github.com/users/laiwf94/repos","events_url":"https://api.github.com/users/laiwf94/events{/privacy}","received_events_url":"https://api.github.com/users/laiwf94/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-13T09:53:50Z","updated_at":"2018-05-13T20:28:12Z","closed_at":null,"author_association":"NONE","body":"The documentation for the server-side rendering (Universal) is outdated. Will you please update the documentation to let us know how to use the server-side rendering in Angular 6?\r\n\r\nIn the Angular documentation (https://angular.io/guide/universal), the \"build and run with Universal\" section (https://angular.io/guide/universal#build-and-run-with-universal) , it asks to change amend the build and serve script into the package.json.  One of the line for the build scripts is as follows:\r\n\r\n\"build:client-and-server-bundles\": \"ng build --prod && ng run angular.io-example:server\",\r\n\r\nWhat is the \"ng run angular.io-example:server\" means in the scripts? What does it run?\r\n\r\nIn the previous version (https://github.com/angular/angular-cli/wiki/stories-universal-rendering), the script for that part should be as follows: \r\n\r\n\"ng build --prod --app 1 --output-hashing=false\"\r\n\r\nwhich will run the second app configuration in the angular-cli.json to build and generate the server.js.\r\n\r\nHowever, the angular-cli.json is being updated to angular.json in Angular 6, and --app flag is not recognised anymore as it doesn't exist in the angular.json.\r\n\r\nWould you please update the documentation, so I will know how to build the server.js with different build script in the package.json? Thanks\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/universal/issues/comments/388653756","html_url":"https://github.com/angular/universal/issues/985#issuecomment-388653756","issue_url":"https://api.github.com/repos/angular/universal/issues/985","id":388653756,"user":{"login":"njl07","id":1673977,"avatar_url":"https://avatars1.githubusercontent.com/u/1673977?v=4","gravatar_id":"","url":"https://api.github.com/users/njl07","html_url":"https://github.com/njl07","followers_url":"https://api.github.com/users/njl07/followers","following_url":"https://api.github.com/users/njl07/following{/other_user}","gists_url":"https://api.github.com/users/njl07/gists{/gist_id}","starred_url":"https://api.github.com/users/njl07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njl07/subscriptions","organizations_url":"https://api.github.com/users/njl07/orgs","repos_url":"https://api.github.com/users/njl07/repos","events_url":"https://api.github.com/users/njl07/events{/privacy}","received_events_url":"https://api.github.com/users/njl07/received_events","type":"User","site_admin":false},"created_at":"2018-05-13T20:28:12Z","updated_at":"2018-05-13T20:28:12Z","author_association":"NONE","body":"You can use `SSR` with [Hapiness module](https://github.com/hapinessjs/ng-universal-module)\r\n\r\nDocumentation is updated and I've just published the latest version."}}
{"actor":{"display_login":"njl07"}}