Skip to content

Instantly share code, notes, and snippets.

@MaximBalaganskiy
Created August 27, 2019 01:12
Show Gist options
  • Select an option

  • Save MaximBalaganskiy/b038b2d897455cd4bda67bf50bd9aa55 to your computer and use it in GitHub Desktop.

Select an option

Save MaximBalaganskiy/b038b2d897455cd4bda67bf50bd9aa55 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>
<md-carousel>
<md-carousel-item href="#one!" image="http://lorempixel.com/250/250/nature/1"></md-carousel-item>
<md-carousel-item href="#two!" image="http://lorempixel.com/250/250/nature/2"></md-carousel-item>
<md-carousel-item href="#three!" image="http://lorempixel.com/250/250/nature/3"></md-carousel-item>
<md-carousel-item href="#four!" image="http://lorempixel.com/250/250/nature/4"></md-carousel-item>
</md-carousel>
</template>
export class App { }
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