Skip to content

Instantly share code, notes, and snippets.

@jessecogollo
Created February 6, 2015 05:21
Show Gist options
  • Save jessecogollo/0363bfe76f830b0bf391 to your computer and use it in GitHub Desktop.
Save jessecogollo/0363bfe76f830b0bf391 to your computer and use it in GitHub Desktop.
app.html router (Proyecto base aurelia.io)
<template>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="navbar-header">
<a class="navbar-brand" href="#">
<i class="fa fa-home"></i>
<span>${router.title}</span>
</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li repeat.for="row of router.navigation" class="${row.isActive ? 'active' : ''}">
<a href.bind="row.href">${row.title}</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="loader" if.bind="router.isNavigating">
<i class="fa fa-spinner fa-spin fa-2x"></i>
</li>
</ul>
</div>
</nav>
<div class="page-host">
<router-view></router-view>
</div>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment