Should specify relative page paths using `page-href` #9

Closed
finnsson opened this Issue Aug 25, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@finnsson
Owner

finnsson commented Aug 25, 2012

<div data-bind="page: {id: 'start'}">
  <!-- This will update href to #start/bender -->
  <a data-bind="page-href: 'bender'">Bender</a>

  <!-- This will update href to #admin/login -->
  <a data-bind="page-href: '../admin/login'">Admin Login</a>

  <div data-bind="page: {id: 'bender'}">Bender!</div>
</div>
<div data-bind="page: {id: 'admin'}">
  <div data-bind="page: {id: 'login'}">Login</div>
</div>

Based on the total path of the page the binding calculates an absolute href.

@finnsson finnsson closed this Aug 25, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment