Skip to content

Instantly share code, notes, and snippets.

@3cp
Last active October 12, 2017 05:56
Show Gist options
  • Select an option

  • Save 3cp/573d55e9a66d37d7968a38becc32808d to your computer and use it in GitHub Desktop.

Select an option

Save 3cp/573d55e9a66d37d7968a38becc32808d to your computer and use it in GitHub Desktop.
test error in attached
<template>
<require from="./child"></require>
<child if.bind="stage == 1">first</child>
<child if.bind="stage == 2">second</child>
<button click.delegate="stage = 1" disabled.bind="stage == 1">Previous</button>
<button click.delegate="stage = 2" disabled.bind="stage == 2">Next</button>
</template>
export class App {
stage = 1;
}
<template ref="el">
<slot ></slot>
</template>
export class Child {
attached() {
throw new Error('lorem');
}
}
<!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://jdanyow.github.io/rjs-bundle/node_modules/requirejs/require.js"></script>
<script src="https://jdanyow.github.io/rjs-bundle/config.js"></script>
<script src="https://jdanyow.github.io/rjs-bundle/bundles/aurelia.js"></script>
<script src="https://jdanyow.github.io/rjs-bundle/bundles/babel.js"></script>
<script>
require(['aurelia-bootstrapper']);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment