Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
fix(api): added missing array notation to controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Can Kattw committed May 18, 2017
1 parent 11fd01f commit d1df4dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/w11k-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ angular.module('w11k.select').directive('w11kSelect', [
templateUrl: w11kSelectConfig.common.templateUrl,
scope: {},
require: 'ngModel',
controller: function ($scope, $attrs, $parse) {
controller: ['$scope', '$attrs', '$parse', function ($scope, $attrs, $parse) {
if ($attrs.w11kSelect && $attrs.w11kSelect.length > 0) {
var exposeExpression = $parse($attrs.w11kSelect);

Expand All @@ -220,7 +220,7 @@ angular.module('w11k.select').directive('w11kSelect', [
this.toggle = function () {
$scope.dropdown.toggle();
};
},
}],
compile: function (tElement, tAttrs) {
var configExpParsed = $parse(tAttrs.w11kSelectConfig);
var optionsExpParsed = w11kSelectHelper.parseOptions(tAttrs.w11kSelectOptions);
Expand Down

0 comments on commit d1df4dc

Please sign in to comment.