Created
July 14, 2018 22:07
-
-
Save raymak23/53fa1d594fa668b0de5c4a450ea43652 to your computer and use it in GitHub Desktop.
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
<!doctype html> | |
<html> | |
<head> | |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | |
</head> | |
<body> | |
<div aurelia-app="src/configure"> | |
Loading... | |
</div> | |
<script src="https://rawgit.com/aurelia-ui-toolkits/demo-materialize/gh-pages/jspm_packages/system.js"></script> | |
<script src="https://rawgit.com/aurelia-ui-toolkits/demo-materialize/gh-pages/jspm.config.js"></script> | |
<script> | |
System.import("aurelia-bootstrapper"); | |
</script> | |
</body> | |
</html> |
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> | |
<div> | |
<a md-sidenav-collapse="ref.bind: sideNavLeft;" md-button md-waves>Left SideNav</a> | |
<a md-sidenav-collapse="ref.bind: sideNavRight;" md-button md-waves>Right SideNav</a> | |
<a md-sidenav-collapse="ref.bind: sideNavCloseOnClick;" md-button md-waves>Close on click</a> | |
</div> | |
<!-- left sidenav --> | |
<md-sidenav view-model.ref="sideNavLeft"> | |
<ul> | |
<li md-waves><a>About</a></li> | |
<li md-waves><a>Installation</a></li> | |
<li md-waves><a>Project Status</a></li> | |
<li md-waves><a>Help/Docs</a></li> | |
</ul> | |
</md-sidenav> | |
<!-- right sidenav --> | |
<md-sidenav view-model.ref="sideNavRight" edge="right"> | |
<ul> | |
<li md-waves><a>About</a></li> | |
<li md-waves><a>Installation</a></li> | |
<li md-waves><a>Project Status</a></li> | |
<li md-waves><a>Help/Docs</a></li> | |
</ul> | |
</md-sidenav> | |
<!-- right sidenav with closeOnCLick set --> | |
<md-sidenav view-model.ref="sideNavCloseOnClick" edge="right" close-on-click="true"> | |
<ul> | |
<li md-waves class="sidenav-close"><a>About (closes)</a></li> | |
<li md-waves><a>Installation</a></li> | |
<li md-waves><a>Project Status</a></li> | |
<li md-waves><a>Help/Docs</a></li> | |
</ul> | |
</md-sidenav> | |
</template> |
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
export class App { } |
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
export async function configure(aurelia) { | |
await aurelia.loader.loadModule("materialize-css"); | |
aurelia.use | |
.standardConfiguration() | |
.developmentLogging() | |
.plugin("aurelia-materialize-bridge", bridge => bridge.useAll()) | |
.plugin("aurelia-validation") | |
.globalResources("src/shared/logger"); | |
await aurelia.start(); | |
aurelia.setRoot("src/app"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment