Skip to content

Commit ea6cdc4

Browse files
committed
update README.md
1 parent eeed006 commit ea6cdc4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ This is meant to be an advanced starter, feature-rich, and include many real-wor
7676
> When building Universal components in Angular 2 there are a few things to keep in mind.
7777
7878
- To use `templateUrl` or `stylesUrl` you must use **`angular2-template-loader`** in your TS loaders.
79-
- This is already setup within this starter repo. Look at the webpack.config file [here](https://github.com/angular/universal-starter/blob/master/webpack.config.ts) for details & implementation.
79+
- This is already setup within this starter repo. Look at the webpack.config file [here](https://github.com/MarkPieszak/aspnetcore-angular2-universal/blob/master/webpack.config.js#L58-L66) for details & implementation.
8080
- **`window`**, **`document`**, **`navigator`**, and other browser types - _do not exist on the server_ - so using them, or any library that uses them (jQuery for example) will not work. You do have some options, if you truly need some of this functionality:
8181
- If you need to use them, consider limiting them to only your main.client and wrapping them situationally with the imported *isBrowser / isNode* features from Universal. `import { isBrowser, isNode } from 'angular2-universal'`;
8282
- Another option is using `DOM` from ["@angular/platform-browser"](https://github.com/angular/angular/blob/e3687706c71beb7c9dbdae1bbb5fbbcea588c476/modules/%40angular/platform-browser/src/dom/dom_adapter.ts#L34)
@@ -87,16 +87,16 @@ constructor(element: ElementRef, renderer: Renderer) {
8787
}
8888
```
8989
- The application runs XHR requests on the server & once again on the Client-side (when the application bootstraps)
90-
- Use the [HttpCacheService ](https://github.com/MarkPieszak/aspnetcore-angular2-universal/blob/master/Client/shared/cache/api.ts), as opposed to using the `Http` service, to save certain requests so they aren't re-ran again on the Client. Use this for imports calls on pages that you expect a client to first-hit your site. Homepage, maybe a products page, etc.
90+
- Use the [HttpCacheService ](https://github.com/MarkPieszak/aspnetcore-angular2-universal/blob/master/Client/shared/cache/api.ts), as opposed to using the `Http` service, to save certain requests so they aren't re-ran again on the Client. Use this for important `GET`'s on pages that you expect a client to first-hit your site. Homepage, maybe a products page, etc.
9191
- Know the difference between attributes and properties in relation to the DOM.
92-
- 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 url in img tag. For our native <img src=""> element the src attribute is reflected as the src property of the element type HTMLImageElement.
92+
- 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 url in img tag. For our native `<img src="">` element the src attribute is reflected as the src property of the element type HTMLImageElement.
9393

9494

9595
----
9696

9797
### Special Thanks
9898

99-
Many thanks go out to Steve Sanderson from Microsoft and his amazing work on JavaScriptServices and integrating the world of Node with ASP.NET Core.
99+
Many thanks go out to Steve Sanderson (@SteveSandersonMS) from Microsoft and his amazing work on JavaScriptServices and integrating the world of Node with ASP.NET Core.
100100

101101
----
102102

0 commit comments

Comments
 (0)