diff options
| author | Igor Minar | 2013-10-10 21:35:54 -0700 |
|---|---|---|
| committer | Igor Minar | 2013-10-11 17:12:24 -0700 |
| commit | 63c5334c84b7269428c710226764d1f08a36e0d4 (patch) | |
| tree | 4924c3e942b6d94d7dcc9bfb6ab629fd52491a0f /docs | |
| parent | b7af76b4c5aa77648cc1bfd49935b48583419023 (diff) | |
| download | angular.js-63c5334c84b7269428c710226764d1f08a36e0d4.tar.bz2 | |
fix($compile): abort compilation when duplicate element transclusion
Issue an error and abort compilation when two directives that ask for transclusion are found
on a single element. This configuration is not supported and we previously failed to issue
the error because in the case of element transclusion the compilation is re-started and this
caused the compilation context to be lost.
The ngRepeat directive has been special-cased to bypass this warning because it knows how to
handle this scenario internally.
This is not an ideal solution to the problem of multiple transclusions per element, we are
hoping to have this configuration supported by the compiler in the future. See #4357.
Closes #3893
Closes #4217
Closes #3307
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
