Skip to content

Instantly share code, notes, and snippets.

View sylvain-hamel's full-sized avatar

Sylvain Hamel sylvain-hamel

  • www.octopus-itsm.com
  • Montreal, Canada
View GitHub Profile
@sylvain-hamel
sylvain-hamel / app.html
Created November 4, 2016 20:50 — forked from gist-master/app.html
Menu: context menu
<template>
<require from="./context-menu.css!css"></require>
<require from="aurelia-kendoui-bridge/listview/listview"></require>
<require from="aurelia-kendoui-bridge/dropdownlist/dropdownlist"></require>
<require from="aurelia-kendoui-bridge/contextmenu/contextmenu"></require>
<require from="aurelia-kendoui-bridge/common/template"></require>
<div id="example">
<div class="demo-section k-content wide">
<ak-list-view k-data-source.bind="dataSource" id="listview-context-menu">
@sylvain-hamel
sylvain-hamel / app.html
Last active August 19, 2016 19:25
Compose avec bind
<template>
<ak-templape>
<compose view.bind="itemTemplate" containerless></compose>
</ak-templape>
</template>
@sylvain-hamel
sylvain-hamel / app.html
Created August 16, 2016 03:13
Set attributes from jQuery
<template>
<require from="./e1"></require>
<e1 value.bind="'initial'"></e1>
</template>
@sylvain-hamel
sylvain-hamel / app.html
Last active August 11, 2016 20:22
Set attributes from jQuery
<template>
<require from="./e1"></require>
<e1 value.bind="'initial'"></e1>
</template>
@sylvain-hamel
sylvain-hamel / app.html
Created August 11, 2016 03:03 — forked from jdanyow/app.html
Aurelia compose vs element
<template>
<require from="./e1"></require>
<div repeat.for="i of 200" style="display:inline-block">
<e1 value.bind="i"></e1>
</div>
<div repeat.for="i of 200" style="display:inline-block">
<compose view-model="./c1" containerless></compose>
</div>
@sylvain-hamel
sylvain-hamel / app.html
Last active September 7, 2016 08:49
binding two values
<template>
<div>
foo.value <input type="text" value.bind="foo.value">
</div>
<div>
bar.value <input type="text" value.bind="bar.value">
</div>
@sylvain-hamel
sylvain-hamel / app.html
Created April 7, 2016 00:55
Aurelia Gist
<template>
<h1>${message}</h1>
</template>
@sylvain-hamel
sylvain-hamel / app.html
Last active March 31, 2016 23:58 — forked from jdanyow/app.html
Aurelia Gist
<template>
<h1>${message}</h1>
</template>
@sylvain-hamel
sylvain-hamel / gist:332aeba3d9e65075c539
Created January 27, 2016 04:35
aurelia scoped instance using autoRegistrer
import {Container, singleton} from 'aurelia-dependency-injection';
describe('DI scoped singletong', () => {
@singleton(true)
class Foo{}
it('should work the way I think :)', () => {
let rootContainer = new Container();

this:

someting
.then(function(){
});

is turned into: