fix(ngTransclude): detect ngTranslude usage without a transclusion directive

Closes #3759
This commit is contained in:
jankuca
2013-09-25 16:37:59 -07:00
committed by Brian Ford
parent 742271ffa3
commit 5a1a6b86a8
3 changed files with 37 additions and 1 deletions

View File

@@ -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.