angular.js/test/ng/directive
Igor Minar 63c5334c84 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
2013-10-11 17:12:24 -07:00
..
aSpec.js fix(a): workaround IE bug affecting mailto urls 2013-02-14 16:42:58 -08:00
booleanAttrsSpec.js feat(minerr): log minerr doc url in development 2013-08-15 13:23:18 -07:00
formSpec.js fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
inputSpec.js fix(input): false is no longer an empty value by default 2013-10-07 16:47:51 -07:00
ngBindSpec.js fix(ng-bind-html): watch string value instead of wrapper 2013-09-20 16:30:20 -07:00
ngClassSpec.js feat(ngRepeat): use block separator comments 2013-10-09 15:19:10 -07:00
ngClickSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngCloakSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngControllerSpec.js feat(controller): support as instance syntax 2013-04-22 23:28:41 -07:00
ngCspSpec.js feat($parse): CSP compatibility 2012-04-27 23:04:24 -07:00
ngEventDirsSpec.js fix(ngSubmit): expose $event to ngSubmit callback 2013-07-11 17:24:30 -07:00
ngIfSpec.js chore(ngMock): rename $animate.process to $animate.flushNext() 2013-08-02 23:52:37 -07:00
ngIncludeSpec.js fix(ngInclude): don't break attribute bindings on ngInclude-ed element 2013-09-20 14:11:12 -07:00
ngInitSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngKeySpec.js feat(directive): ng:focus, ng:blur 2013-07-18 19:24:42 +02:00
ngNonBindableSpec.js test(ng-non-bindable): test sibling bindings 2013-09-20 23:55:23 -07:00
ngPluralizeSpec.js feat(ngPluralize): add alternative mapping using attributes 2013-07-14 16:36:15 +02:00
ngRepeatSpec.js fix($compile): abort compilation when duplicate element transclusion 2013-10-11 17:12:24 -07:00
ngShowHideSpec.js chore(ngMock): rename $animate.process to $animate.flushNext() 2013-08-02 23:52:37 -07:00
ngSrcsetSpec.js feat(ngSrcset): add new ngSrcset directive 2013-05-14 21:29:21 +01:00
ngSrcSpec.js feat(minerr): log minerr doc url in development 2013-08-15 13:23:18 -07:00
ngStyleSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngSwitchSpec.js chore(ngMock): rename $animate.process to $animate.flushNext() 2013-08-02 23:52:37 -07:00
scriptSpec.js fix(script): Incorrectly reading script text on ie 2012-04-20 11:29:34 -07:00
selectSpec.js fix(input): false is no longer an empty value by default 2013-10-07 16:47:51 -07:00
styleSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00