danderson00 / tribe

Sweet, juicy goodness
http://tribejs.com/
2 stars 2 forks source link

how to use the history component? #16

Closed boussou closed 10 years ago

boussou commented 10 years ago

Hi, while knockout.composite is working out of the box for the back button management, tribe has no sample code to use it even if there exist a history component.

what is the easiest way to manage it? could you add a sample code?

Thanks a lot

danderson00 commented 10 years ago

I've been meaning to finish this for a while, thanks for the motivation!

Browser history and bookmarking now work out of the box by passing the browser option to the handlesNavigation pane option. See an example at http://tribejs.com/?section=Reference&topic=Core/panes

If you need more control over the URL, you can see a sample urlProvider at https://github.com/danderson00/Tribe/blob/master/Reference/Infrastructure/articleUrlProvider.js