From 5a1a6b86a8dbcd8aa4fe9c59fad8d005eead686c Mon Sep 17 00:00:00 2001 From: jankuca Date: Wed, 25 Sep 2013 16:37:59 -0700 Subject: fix(ngTransclude): detect ngTranslude usage without a transclusion directive Closes #3759 --- docs/content/error/ngTransclude/orphan.ngdoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 docs/content/error/ngTransclude/orphan.ngdoc (limited to 'docs/content/error') diff --git a/docs/content/error/ngTransclude/orphan.ngdoc b/docs/content/error/ngTransclude/orphan.ngdoc new file mode 100644 index 00000000..5ac25432 --- /dev/null +++ b/docs/content/error/ngTransclude/orphan.ngdoc @@ -0,0 +1,12 @@ +@ngdoc error +@name ngTransclude:orphan +@fullName Orphan ngTransclude Directive +@description + +Occurs when an `ngTransclude` occurs without a transcluded ancesstor element. + +This error often occurs when you have forgotten to set `transclude: true` in some directive definition, and then used `ngTranslude` in the driective's template. + +To resolve, either remove the offending `ngTransclude` or check that `transclude: true` is included in the intended directive definition. + +Consult the API documentation for {@link guide/directive writing directives} to learn more. -- cgit v1.2.3