docs: fix typo in Universal guide (#24812)

PR Close #24812
This commit is contained in:
George Kalpakas 2018-07-10 16:29:10 +03:00 committed by Miško Hevery
parent 9ff4617956
commit 529e4b1565

View File

@ -241,7 +241,7 @@ even when the Universal web server is capable of handling those requests.
You'll have to change the services to make requests with absolute URLs when running on the server
and with relative URLs when running in the browser.
One solution is to provide the server's runtime origin under the Angular [`APP_BASE_REF` token](api/common/APP_BASE_HREF),
One solution is to provide the server's runtime origin under the Angular [`APP_BASE_HREF` token](api/common/APP_BASE_HREF),
inject it into the service, and prepend the origin to the request URL.
Start by changing the `HeroService` constructor to take a second `origin` parameter that is optionally injected via the `APP_BASE_HREF` token.