This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Version 1.5.0:restrict 'A' on component() fails silently which might cause a lot of confusion #13966
Closed
Description
In early versions of AngularJS 1.5, it was possible to use restrict: 'A'
for component()
method, and I used it widely in my code. Breaking change came with 1.5.0-rc.1 quantum-fermentation (2016-01-15), where only restrict: 'E'
became permitted, but I missed it (I think not only me) because I stayed with one of the previous 1.5.0 versions. Today I updated Angular's files to 1.5.0 final release and components
with restrict: 'A'
weren't visible and it took me a while to figure out that I have to replace attribute usages to element usages. Maybe, to avoid confusion, it should throw an Error when component()
method meets restrict
other than 'E'
?
Thank you in advance for looking on this post.
Best regards,
Radek.