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

Commit

Permalink
fix(autocomplete): Fix require property
Browse files Browse the repository at this point in the history
The 'require' property of the autocomplete directive should always
require a tagsInput controller and throw an error when one is not found.
  • Loading branch information
mbenford committed Jan 4, 2014
1 parent 49c0760 commit 231f275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auto-complete.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ tagsInput.directive('autoComplete', function($document, $timeout, $sce, tiConfig

return {
restrict: 'E',
require: '?^tagsInput',
require: '^tagsInput',
scope: { source: '&' },
templateUrl: 'ngTagsInput/auto-complete.html',
link: function(scope, element, attrs, tagsInputCtrl) {
Expand Down

0 comments on commit 231f275

Please sign in to comment.