Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet" type="text/css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.16/vue.js"></script>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
    
    <Panel :list="list" :level=0
      
     v-for="list in items_arr"></Panel>
  
    <Panel :list="items_obj" :level=0></Panel>
    
    <template id="item-template">
        
        <div class="item level-{{ level }}" id="item-{{ list.id }}">
            <label>{{ list.body }} (level {{ level }})</label>
            <div v-if="list.children.length" class="children">
                <Panel 
                    v-for="child in list.children"
                    :list="child" :level=(level+1)>      
                </Panel>
            </div>
        </div>
      
    </template>
</body>
</html>
Output

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

Dismiss x
public
Bin info
davestewartpro
0viewers