Skip to content

Commit 738289e

Browse files
committedApr 9, 2015
update dist
1 parent 6501d97 commit 738289e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed
 

‎dist/angular-dropdowns.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,12 @@ dd.directive('dropdownSelect', ['DropdownService',
6868
scope: {
6969
dropdownSelect: '=',
7070
dropdownModel: '=',
71+
dropdownItemLabel: '@',
7172
dropdownOnchange: '&'
7273
},
7374

74-
controller: ['$scope', '$element', '$attrs', function ($scope, $element, $attrs) {
75-
$scope.labelField = $attrs.dropdownItemLabel || 'text';
75+
controller: ['$scope', '$element', function ($scope, $element) {
76+
$scope.labelField = $scope.dropdownItemLabel || 'text';
7677

7778
DropdownService.register($element);
7879

@@ -131,11 +132,12 @@ dd.directive('dropdownMenu', ['$parse', '$compile', 'DropdownService', '$templat
131132
scope: {
132133
dropdownMenu: '=',
133134
dropdownModel: '=',
135+
dropdownItemLabel: '@',
134136
dropdownOnchange: '&'
135137
},
136138

137-
controller: ['$scope', '$element', '$attrs', function ($scope, $element, $attrs) {
138-
$scope.labelField = $attrs.dropdownItemLabel || 'text';
139+
controller: ['$scope', '$element', function ($scope, $element) {
140+
$scope.labelField = $scope.dropdownItemLabel || 'text';
139141

140142
var $template = angular.element($templateCache.get('ngDropdowns/templates/dropdownMenu.html'));
141143
// Attach this controller to the element's data
@@ -233,4 +235,4 @@ dd.factory('DropdownService', ['$document',
233235
return service;
234236
}
235237
]);
236-
})(window, window.angular);
238+
})(window, window.angular);

‎dist/angular-dropdowns.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.