Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="CanJS jQuery">
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<div id='out'></div>
<script id="app-template" type="text/stache">
  {{email}}
  <br/>
  <input type="text" {$value}="email" ($input)="setEmail(%element.value)" />
</script>
  
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.js"></script>
<script src="//canjs.com/release/latest/can.jquery.js"></script>
<script src="//canjs.com/release/latest/can.construct.super.js"></script>
<script src="//canjs.com/release/latest/can.map.define.js"></script>
<script src="//canjs.com/release/master/can.stache.js"></script>
<script src="//canjs.com/release/latest/can.fixture.js"></script>
</body>
</html>
 
$("body").prepend(
  can.view("app-template", new can.Map({
    email: "hello",
    setEmail(val) {
      this.attr('email', val);
    }
  })) 
);
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers