Skip to content

Instantly share code, notes, and snippets.

@atsu85
Last active May 19, 2016 16:06
Show Gist options
  • Save atsu85/59b857965146f0a2abfb5fa1bc4bddb1 to your computer and use it in GitHub Desktop.
Save atsu85/59b857965146f0a2abfb5fa1bc4bddb1 to your computer and use it in GitHub Desktop.
Aurelia Gist
<template>
<h1>this video is being played twice if the autoplay attribute isn't bound to VM property. Pause and see</h1>
<video src="http://video.webmfiles.org/big-buck-bunny_trailer.webm"
ref="player" loop controls autoplay="${autoplay}"></video >
</template>
export class App {
autoplay = true;
}
<!doctype html>
<html>
<head>
<title>Aurelia</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body aurelia-app>
<h1>Loading...</h1>
<script src="https://cdn.rawgit.com/jdanyow/aurelia-bundle/v1.0.3/jspm_packages/system.js"></script>
<script src="https://cdn.rawgit.com/jdanyow/aurelia-bundle/v1.0.3/config.js"></script>
<script>
System.import('aurelia-bootstrapper');
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment