Universal (isomorphic) javascript support for Angular2
npm install angular2-universal-previewAngular 2 Server Rendering - Angular U, July 2015

* Know the difference between attributes and properties in relation to the DOM
* Don't manipulate the nativeElement directly. Use the Renderer
``typescript`
constructor(element: ElementRef, renderer: Renderer) {
renderer.setElementStyle(element, 'fontSize', 'x-large');
}navigator
* Don't use any of the browser types provided in the global namespace such as or document. Anything outside of Angular will not be detected when serializing your application into htmlurl
* Keep your directives stateless as much as possible. For stateful directives you may need to provide an attribute that reflects the corresponding property with an initial string value such as in img tag. For our native element the src attribute is reflected as the src property of the element type HTMLImageElement`.