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

Using a Navbar to Switch Page Components. #3

Open
stephaniie2 opened this issue Jan 28, 2019 · 1 comment
Open

Using a Navbar to Switch Page Components. #3

stephaniie2 opened this issue Jan 28, 2019 · 1 comment

Comments

@stephaniie2
Copy link

Hi, your package works perfectly.
I love how its divided between PageComponents and Components.

But if I want to display different PageComponents from a Link. How to do ?

Say Navbar has 3 links.. "home" "page1" and "page2"
And I have 3 page components ( home, page1, page2)

How to swap page -components through a navbar?

@JonUK
Copy link
Owner

JonUK commented Jan 28, 2019

Hi. Good to hear this code has been useful for you.

This repo was just for proving out some concepts and I haven't got round to adding routing support.

There is a good article that explains how to use Crossroads and Hasher with KO.
https://sumitmaitra.wordpress.com/2014/08/04/part-3-ko-components-routes-and-hashes/

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