-
Notifications
You must be signed in to change notification settings - Fork 26.2k
documentation of router outlet #19443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @rberge, the host view in this case is the template in app/app.component.ts. It hosts anything that is rendered through a |
Thank you! I am still working on routing so will go back to the tutorial and see how this helps. I appreciate it.
… On Oct 3, 2017, at 7:30 AM, Kapunahele Wong ***@***.***> wrote:
Hi @rberge <https://github.com/rberge>, the host view in this case is the template in app/app.component.ts. It hosts anything that is rendered through a <router-outlet>. I'm not finding the if (routing) in the live example or the download. Can you point me to it? I'd love to help clear things up.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#19443 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AT7P-JDY74IhxLsllQ7RLmK6fsFJO7u_ks5sokTugaJpZM4PmNsz>.
|
@rberge ok, let me know if you have any questions or suggestions for improvement. I'm still interested in the if statement you referenced. If you see it again, please let me know so I can take a look. |
I think the remaining summary is this: Update https://angular.io/guide/router#router-outlet to be more clear about this: the host view in this case is the template in app/app.component.ts. It hosts anything that is rendered through a . |
Fixed via #20023 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a...
Current behavior
This is from the current tutorial on routing as of August 27,2017 at this url https://angular.io/guide/router
Router outlet
Given this configuration, when the browser URL for this application becomes /heroes, the router matches that URL to the route path /heroes and displays the HeroListComponent after a RouterOutlet that you've placed in the host view's HTML.
content_copy
Expected behavior
What is a host view HTML?
In the plunker and download files, there are not very many html files.
I find a router-outlet in app.component.html but it is surrounded by an "if" statement and there is nothing after it.
<% if (routing) { %>
<% } %>
here is an example of the files from the download from the website

(see uploaded screen shot)
I don't understand what the tutorial is saying or why the examples don't match. Is it possible to review and explain?
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: