Skip to content

Instantly share code, notes, and snippets.

@Ullfis
Last active December 15, 2017 10:17
Show Gist options
  • Save Ullfis/8605d771d94d0aaf346be18ccc20e9ef to your computer and use it in GitHub Desktop.
Save Ullfis/8605d771d94d0aaf346be18ccc20e9ef to your computer and use it in GitHub Desktop.
aurelia-mdc-bridge
<template>
<require from="material-components-web/dist/material-components-web.css"></require>
<mdc-toolbar>
<mdc-toolbar-row>
<mdc-toolbar-section start="true">
<button class="mdc-toolbar__menu-icon" mdc-ripple><i class="material-icons">close</i></button>
<mdc-toolbar-title>Button tags with child icon tag</mdc-toolbar-title>
</mdc-toolbar-section>
<mdc-toolbar-section end="true" fit="true">
<button class="mdc-toolbar__icon" mdc-ripple><i class="material-icons">arrow_downward</i></button>
<button class="mdc-toolbar__icon" mdc-ripple><i class="material-icons">arrow_upward</i></button>
<button class="mdc-toolbar__icon" mdc-ripple><i class="material-icons">delete</i></button>
</mdc-toolbar-section>
</mdc-toolbar-row>
</mdc-toolbar>
<mdc-toolbar>
<mdc-toolbar-row>
<mdc-toolbar-section start="true">
<button class="mdc-toolbar__menu-icon material-icons" mdc-ripple>close</button>
<mdc-toolbar-title>Button tags</mdc-toolbar-title>
</mdc-toolbar-section>
<mdc-toolbar-section end="true" fit="true">
<button class="mdc-toolbar__icon material-icons" mdc-ripple>arrow_downward</button>
<button class="mdc-toolbar__icon material-icons" mdc-ripple>arrow_upward</button>
<button class="mdc-toolbar__icon material-icons" mdc-ripple>delete</button>
</mdc-toolbar-section>
</mdc-toolbar-row>
</mdc-toolbar>
<mdc-toolbar>
<mdc-toolbar-row>
<mdc-toolbar-section start="true">
<a href="#" class="mdc-toolbar__menu-icon material-icons" mdc-ripple>close</a>
<mdc-toolbar-title>Anchor tags</mdc-toolbar-title>
</mdc-toolbar-section>
<mdc-toolbar-section end="true" fit="true">
<a href="#" class="mdc-toolbar__icon material-icons" mdc-ripple>arrow_downward</a>
<a href="#" class="mdc-toolbar__icon material-icons" mdc-ripple>arrow_upward</a>
<a href="#" class="mdc-toolbar__icon material-icons" mdc-ripple>delete</a>
</mdc-toolbar-section>
</mdc-toolbar-row>
</mdc-toolbar>
<mdc-toolbar>
<mdc-toolbar-row>
<mdc-toolbar-section start="true">
<span class="mdc-toolbar__menu-icon material-icons" mdc-ripple>close</span>
<mdc-toolbar-title>Span tags</mdc-toolbar-title>
</mdc-toolbar-section>
<mdc-toolbar-section end="true" fit="true">
<span class="mdc-toolbar__icon material-icons" mdc-ripple>arrow_downward</span>
<span class="mdc-toolbar__icon material-icons" mdc-ripple>arrow_upward</span>
<span class="mdc-toolbar__icon material-icons" mdc-ripple>delete</span>
</mdc-toolbar-section>
</mdc-toolbar-row>
</mdc-toolbar>
</template>
export class App {
}
<!doctype html>
<html class="mdc-typography">
<head>
<title>Aurelia</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body aurelia-app="main">
<h1>Loading...</h1>
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.46/system.js"></script>
<script src="https://rawgit.com/ullfis/aurelia-mdc-bundles/0.14.5/config2.js"></script>
<script>
System.import('aurelia-bootstrapper');
</script>
</body>
</html>
/*******************************************************************************
* The following two lines enable async/await without using babel's
* "runtime" transformer. Uncomment the lines if you intend to use async/await.
*
* More info here: https://github.com/jdanyow/aurelia-plunker/issues/2
*/
//import regeneratorRuntime from 'babel-runtime/regenerator';
//window.regeneratorRuntime = regeneratorRuntime;
/******************************************************************************/
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging()
.plugin('aurelia-mdc-bridge', bridge => bridge.useAll() );
aurelia.start().then(a => a.setRoot());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment