main.js:
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging();
// Assuming a file named "knockout-custom-attribute.js", containing the
// custom attribute class defined above, exists in the root of the project:
aurelia.use.globalResources('./knockout-custom-attribute');
aurelia.start().then(a => a.setRoot());
}
usage:
<!-- apply the "knockout" attribute to sections of html containing knockout bindings -->
<div knockout>
<input data-bind="value: firstName">
<input data-bind="value: lastName">
</div>