Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<html ng-app="ionicApp">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>Ionic List Directive</title>
   
    <link href="http://code.ionicframework.com/0.9.24/css/ionic.min.css" rel="stylesheet">
    <script src="http://code.ionicframework.com/0.9.24/js/ionic.bundle.min.js"></script>
  </head>
  <body ng-controller="MyCtrl">
    
    <header class="bar bar-header bar-dark">
      <div class="buttons">
        <button class="button button-icon icon ion-ios7-minus-outline" ng-click="showDelete=!showDelete"></button>
      </div>
      <h1 class="title">Ionic Delete/Option Buttons</h1>
    </header>
 
    
    <tabs tabs-type="tabs-icon-only">
  <tab title="Home" icon-on="ion-ios7-filing" icon-off="ion-ios7-filing-outline">
    <tab title="Setting" icon-on="ion-ios7-filing" icon-off="ion-ios7-filing-outline">
       <content class="has-header">
      <list show-delete="showDelete"
                on-delete="onItemDelete(item)">
        
        <item ng-repeat="item in items"
              href="#/item/{{item.id}}"
              item-type="item-icon-right">
          Event: {{ item.eventName }} 
          <span class="item-note">
      {{item.DeptName}}
      </span>
          
        </item>
        
      </list>
    </content>
  </tab>
  </tab>
</tabs>
      
  </body>
</html>
 
angular.module('ionicApp', ['ionic'])
.controller('MyCtrl', function($scope) {
  
  $scope.itemButtons = [
  ];
  
  $scope.onItemDelete = function(item) {
    $scope.items.splice($scope.items.indexOf(item), 1);
  };
  
  $scope.items = [
    { eventName: "Digital Media Event", DeptName:"DGM" },
    { eventName: "Not as awesome CS Event", DeptName:"CS" },
    { id: 3 },
    { id: 4 },
    { id: 5 },
    { id: 6 },
    { id: 7 },
    { id: 8 },
    { id: 9 },
    { id: 10 }
    
  ];
  
});
Output

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

Dismiss x
public
Bin info
chadwtknspro
0viewers