This file contains 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> | |
<compose view-model.bind='level1ViewModel'></compose> | |
</template> |
This file contains 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> | |
<h1>${message}</h1> | |
<compose view-model.bind='level1ViewModel'></compose> | |
</template> |
This file contains 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
'use strict'; | |
function log(message) { | |
document.getElementById('status').textContent += message + '\n'; | |
} | |
log('running...'); | |
const tests = [ | |
null, undefined, 0, 1, true, false, '', 'adsfasf', new String('test'), {}, Object.create(null), Object.prototype, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, | |
null, undefined, 0, 1, true, false, '', 'adsfasf', new String('test'), {}, Object.create(null), Object.prototype, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, function() {}, |
This file contains 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>GistRun</title> | |
</head> | |
<body> | |
<pre><code id="status"></code></pre> | |
<script src="https://cdn.jsdelivr.net/g/[email protected],[email protected],[email protected]"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/node-uuid/1.4.7/uuid.js"></script> |
This file contains 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> | |
<button click.trigger="items.push({ text: 'I am a new message no.' + items.length }) && scroll()">Add</button> | |
<div style='height: 400px; overflow: auto' ref='wrapper'> | |
<div repeat.for="item of items" style='height: 70px; margin: 10px; border: 1px solid #585'> | |
${item.text} | |
</div> | |
</div> | |
</template> |
This file contains 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='./self'></require> | |
<style> | |
.panel { | |
user-select: none; | |
} | |
.panel header { | |
padding: 5px; | |
height: 50px; background: green; color: #fff; | |
} |
This file contains 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="./autocomplete"></require> | |
<form> | |
<label class="form-component"> | |
Country:<br/> | |
<autocomplete service.bind="suggestionService.country" | |
value.bind="model.country" | |
placeholder="Enter country..." | |
change.delegate="model.city = null"> | |
</autocomplete> |
This file contains 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='./self'></require> | |
<h1>${heading}</h1> | |
<button type="button" click.delegate="toggleIsChecked() & self"> | |
<input type="checkbox" checked.bind="isChecked"> ${isChecked} | |
</button> | |
</template> |
This file contains 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> | |
<style> | |
.active { | |
border-color: blue; | |
} | |
</style> | |
<form blur.capture="currentFieldSet = null" | |
focus.capture="currentFieldSet = $event.target.closest('fieldset')"> | |
<h1>Order Pizza:</h1> |
This file contains 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="./on-key"></require> | |
<div> | |
Press [<b>Ctrl + Enter</b>] in textbox <br/> | |
Or [<b>Alt + Click</b>] it to trigger event | |
</div> | |
<input | |
value.bind="message" | |
keyup.delegate="textEntered() & keys:'ctrl':13" | |
mousedown.delegate="textClicked() & keys:'alt'" |
OlderNewer