From fdf06be0e5ffa50f5e9adc377be8be2e185e042a Mon Sep 17 00:00:00 2001 From: mhartington Date: Fri, 16 Jan 2015 17:06:41 -0500 Subject: [PATCH] docs(ionList): add example controller --- js/angular/directive/list.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/angular/directive/list.js b/js/angular/directive/list.js index 1466edc845..bae4df316f 100644 --- a/js/angular/directive/list.js +++ b/js/angular/directive/list.js @@ -63,6 +63,14 @@ * * ``` * +*```javascript +* app.controller('MyCtrl', function($scope, $ionicLoading) { +* $scope.shouldShowDelete = false; +* $scope.shouldShowReorder = false; +* $scope.listCanSwipe = true +* }); +*``` +* * @param {string=} delegate-handle The handle used to identify this list with * {@link ionic.service:$ionicListDelegate}. * @param type {string=} The type of list to use (list-inset or card)