Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- <require from="./canvas"></require>
- <require from="./circle"></require>
- <h1>Canvas</h1>
- <my-canvas view-model.ref="canvas">
- <my-circle repeat.for="circle of circles" x.bind="circle.x" y.bind="circle.y" r.bind="circle.r"></my-circle>
- </my-canvas>
- <button click.delegate="addAnother()">Add another</button>
- <button click.delegate="removeOne()">Remove one</button>
- </template>
Add Comment
Please, Sign In to add comment