Skip to content

Instantly share code, notes, and snippets.

@Vheissu
Created March 8, 2019 05:09
Show Gist options
  • Save Vheissu/31b44be0b5fcf068bcd25607dcf2e42c to your computer and use it in GitHub Desktop.
Save Vheissu/31b44be0b5fcf068bcd25607dcf2e42c 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>
<div>
<md-range value.bind="rangeValue" md-min.bind="min" md-max.bind="max" md-step.bind="step"></md-range>
</div>
<div>
Value: ${rangeValue}
</div>
<div>
<md-input type="number" label="min" value.bind="min"></md-input>
<md-input type="number" label="max" value.bind="max"></md-input>
<md-input type="number" step="any" label="step" value.bind="step"></md-input>
</div>
</template>
export class App {
rangeValue = 1.5;
min = 0;
max = 4;
step = 0.1;
}
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