angular-docs-cn/packages/platform-server/src
Vikram Subramanian 2f2d5f35bd feat(platform-server): provide a DOM implementation on the server
Fixes #14638

Uses Domino - https://github.com/fgnass/domino and removes dependency on
Parse5.

The DOCUMENT and nativeElement were never typed earlier and were
different on the browser(DOM nodes) and the server(Parse5 nodes). With
this change, platform-server also exposes a DOCUMENT and nativeElement
that is closer to the client. If you were relying on nativeElement on
the server, you would have to change your code to use the DOM API now
instead of Parse5 AST API.

Removes the need to add services for each and every Document
manipulation like Title/Meta etc.

This does *not* provide a global variable 'document' or 'window' on the
server. You still have to inject DOCUMENT to get the document backing
the current platform server instance.
2017-08-30 17:46:16 -07:00
..
domino_adapter.ts feat(platform-server): provide a DOM implementation on the server 2017-08-30 17:46:16 -07:00
http.ts fix(platform-server): provide XhrFactory for HttpClient 2017-07-18 13:59:26 -07:00
location.ts fix(platform-browser): Update types for TypeScript nullability support 2017-04-18 12:07:33 -07:00
platform-server.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
platform_state.ts feat(platform-server): provide a DOM implementation on the server 2017-08-30 17:46:16 -07:00
private_export.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
server.ts feat(platform-server): provide a DOM implementation on the server 2017-08-30 17:46:16 -07:00
server_renderer.ts perf(core): use native addEventListener for faster rendering. (#18107) 2017-07-25 15:35:44 -05:00
styles_host.ts feat(platform-server): provide a DOM implementation on the server 2017-08-30 17:46:16 -07:00
tokens.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
utils.ts feat(platform-server): provide a DOM implementation on the server 2017-08-30 17:46:16 -07:00
version.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00