aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/error/ngTransclude/orphan.ngdoc
blob: 5ac254329a7c2192441e4a4ca8bbbf1ce50a0013 (plain)
1
2
3
4
5
6
7
8
9
10
11
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.