This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat ($compile): add multi option to transclude property
Previously, there were two options to the transclude property: true and "element". This commit adds a third option, "multi", that automatically matches transcluded elements with "ng-transclude-to" attributes to directive template elements with "ng-transclude-id" attributes.
- Loading branch information
Kara Erickson
committed
Apr 27, 2015
1 parent
c10b249
commit d276c91
Showing
3 changed files
with
86 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@ngdoc error | ||
@name $compile:notranscludetarget | ||
@fullName Invalid ng-transclude-to attribute | ||
@description | ||
|
||
When using a directive that allows multiple transclusion points (e.g. the `transclude` property is set to `multi` in the directive definition), a valid `ng-transclude-to` attribute is required on each transcluded element in order to attach it to the right place in the DOM. | ||
|
||
This error occurs when the `ng-transclude-to` attribute is either missing or cannot be matched to a `ng-transclude-id` inside the directive template. | ||
|
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