Skip to content

Instantly share code, notes, and snippets.

@haiau79
Forked from charlespockert/app.html
Last active May 17, 2016 14:40
Show Gist options
  • Save haiau79/719c878afd179ddc74a6dd688559c178 to your computer and use it in GitHub Desktop.
Save haiau79/719c878afd179ddc74a6dd688559c178 to your computer and use it in GitHub Desktop.
<template>
<require from="panel"></require>
<panel click.delegate="onclick()">
<div>
<div>
Lights
<button type="button" class="btn btn-default">On</button>
<button type="button" class="btn btn-default">Off</button>
</div>
<div>
Strobe
<button type="button" class="btn btn-default">On</button>
<button type="button" class="btn btn-default">Off</button>
</div>
<div>
New
<button type="button" class="btn btn-default">On</button>
<button type="button" class="btn btn-default">Off</button>
<button type="button" class="btn btn-default">Reset</button>
</div>
</div>
</panel>
</template>
export class App {
}
<template>
<button type="button" class="btn btn-default">
<content></content>
</button>
</template>
export class Button1 {
}
<!doctype html>
<html>
<head>
<title>Aurelia</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"></link>
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.6/system.js"></script>
<script src="https://cdn.rawgit.com/valichek/aurelia-bundle/i18n-0.5.2v0.0.4/config.js"></script>
</head>
<body aurelia-app="main">
<h1>Loading...</h1>
<script>
System.import('aurelia-bootstrapper');
</script>
</body>
</html>
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging();
aurelia.start().then(() => aurelia.setRoot());
}
<template>
<content></content>
</template>
export class Panel {
onclick() {
console.log("button clicked");
}
}
/* todo: add styles */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment