Skip to content
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

Startup route #138

Open
MaciejHanajczyk opened this issue Dec 10, 2015 · 2 comments
Open

Startup route #138

MaciejHanajczyk opened this issue Dec 10, 2015 · 2 comments

Comments

@MaciejHanajczyk
Copy link

Hi,
how to configure a default/startup route on app-router in html?

Is there a 'active' or 'default' property on app-router element which sets that?

@byrnane
Copy link

byrnane commented Mar 3, 2016

Hi, @MaciejHanajczyk. To create default state use something like this:

<app-router>
    <app-route path="/" redirect="/home"></app-route>
    <app-route path="/home" import="home-page.html"></app-route>
    <!-- Another pages here -->
    <app-route path="*" import="not-found-page.html"></app-route>
</app-router>

@MaciejHanajczyk
Copy link
Author

Thanks for Your reply.
I will give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants