This repository has been archived by the owner on Nov 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tagsInput): Added support for Angular 1.2.x
- Implemented transclude-append directive in order to re-create the old behavior of ng-transclude so the autocomplete feature works and the tagsInput directive's template remains well-structured. - Replaced element.bind() with element.on() since starting with v1.2 bind() is just an alias for on(); - Fixed isolate scope retrieval in all tests; Closes #17.
- Loading branch information
Showing
13 changed files
with
11,868 additions
and
6,072 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
(function() { | ||
'use strict'; | ||
|
||
/** | ||
* @ngdoc directive | ||
* @name tagsInput.directive:transcludeAppend | ||
* | ||
* @description | ||
* Re-creates the old behavior of ng-transclude. | ||
*/ | ||
angular.module('tags-input').directive('transcludeAppend', function() { | ||
return function(scope, element, attrs, ctrl, transcludeFn) { | ||
transcludeFn(function(clone) { | ||
element.append(clone); | ||
}); | ||
}; | ||
}); | ||
|
||
}()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.