Created
February 6, 2015 05:21
-
-
Save jessecogollo/0363bfe76f830b0bf391 to your computer and use it in GitHub Desktop.
app.html router (Proyecto base aurelia.io)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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