Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head> 
<meta name="description" content="TodoMVC Guide 3.0 - Create todos">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <button onclick="generateLocationList()">Generate trip</button>
   
   <script type="text/stache" id="trip-template">
   <h1>Trip Overview</h1>{{LocationList.AS.length}}
{{#if LocationList}}
<ul>
      {{#each LocationList.AS}}
       <li>{{name}}{{id}}
         {{#if AS}}
         <ul>{{#each activityList}}
           <li>
             {{ActivityType}}, duration: {{duration}} <button ($click)="extend()">Extend duration</button>
           </li>
         {{/each}}</ul>
         {{/if}}
         </li>
      {{/each}}
   </ul>
   {{/if}}
</script>
    
<script src="https://unpkg.com/can/dist/global/can.all.js"></script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers