can
Version:
MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.
17 lines (13 loc) • 385 B
HTML
<body>
<div id='list'></div>
<script src="../../node_modules/steal/steal.js" id="demo-source">
var todoConnection = require("can-connect/data/worker/demo/todo_connection")
todoConnection.getList({}).then(function(todos){
var html = "";
todos.forEach(function(todo){
html += "<li>"+todo.name+"</li>";
});
document.getElementById('list').innerHTML = html;
});
</script>
</body>