This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function configure(config) { | |
return System.import("test/test-container"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Aurelia} from 'aurelia-framework'; | |
import {Container} from 'aurelia-dependency-injection'; | |
export function toolBarItem() { | |
return (target)=> { | |
let container = Container.instance; | |
let aurelia = container.get(Aurelia); | |
console.log(aurelia); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from="./when-visible"></require> | |
<div> | |
<table class="table table-striped latest-data"> | |
<tbody> | |
<tr repeat.for="db of databases"> | |
<td class="dbname"> | |
${db.dbname & oneTime & whenVisible} | |
</td> | |
<td class="query-count"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from="./numeric-input"></require> | |
<numeric-input value.bind="value" callback.call="onBlur()"></numeric-input> | |
${value} | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
devServer: { | |
host: '0.0.0.0', | |
port: 9000 | |
}, | |
entry: { | |
'app': ['aurelia-bootstrapper-webpack', 'aurelia-polyfills', 'aurelia-pal', 'aurelia-pal-browser', 'bluebird', main] | |
}, | |
output: { | |
path: outDir + '/' + pkg.version, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from="./inline"></require> | |
<div class="container-fluid"> | |
<h4 class="page-header">Inline template in custom component</h4> | |
<div class="form-group"> | |
<label>Template:</label> | |
<input class="form-control" type="text" value.bind="customTemplate" /> | |
</div> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<table oa-sortable="scroll.bind: 'document'; items.bind: items;"> | |
<tbody> | |
<tr | |
oa-sortable-item="item.bind: item;" | |
repeat.for="item of items" | |
draggable="false"> | |
<td> | |
${item.text} | |
</td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<ul oa-sortable="scroll.bind: 'document'; items.bind: items;"> | |
<li | |
oa-sortable-item="item.bind: item;" | |
repeat.for="item of items" | |
draggable="false"> | |
${item.text} | |
</li> | |
</ul> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from="test"></require> | |
<h1>${message}</h1> | |
<div test.call="onTest()"></div> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<ul oa-sortable="scroll.bind: 'document'; items.bind: items; axis: 'y'"> | |
<li | |
oa-sortable-item="item.bind: item;" | |
repeat.for="item of items" | |
draggable="false"> | |
${item.text} | |
</li> | |
</ul> | |
</template> |
OlderNewer