Skip to content

Instantly share code, notes, and snippets.

@gregoryagu
Created May 17, 2018 10:22
Show Gist options
  • Save gregoryagu/002b1e043584a6ea4c8dbb3e15a566e6 to your computer and use it in GitHub Desktop.
Save gregoryagu/002b1e043584a6ea4c8dbb3e15a566e6 to your computer and use it in GitHub Desktop.
<!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>
<template>
<!--<require from="materialize/dist/css/materialize.css"></require>-->
<div>
<a md-button="floating: true; large: true; pulse.bind: pulse;" md-waves="color: light; circle: true;">
<i class="large material-icons">mode_edit</i>
</a>
<a md-button="floating: true; pulse.bind: pulse;" md-waves="color: light; circle: true;">
<i class="material-icons">thumb_up</i>
</a>
</div>
<div style="margin-top: 15px;">
<md-checkbox checked.bind="pulse">add pulse</md-checkbox>
</div>
</template>
export class App {
pulse = false;
}
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