Sha256: 2bd490962db5c8aaa5a31002bbf444272270f673ace5cc0c964a6a902f58b845
Contents?: true
Size: 489 Bytes
Versions: 8
Compression:
Stored size: 489 Bytes
Contents
angular.module('ui.bootstrap.demo').controller('DropdownCtrl', function ($scope, $log) { $scope.items = [ 'The first choice!', 'And another choice for you.', 'but wait! A third!' ]; $scope.status = { isopen: false }; $scope.toggled = function(open) { $log.log('Dropdown is now: ', open); }; $scope.toggleDropdown = function($event) { $event.preventDefault(); $event.stopPropagation(); $scope.status.isopen = !$scope.status.isopen; }; });
Version data entries
8 entries across 8 versions & 1 rubygems