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
Labels
Milestone
In early versions of AngularJS 1.5, it was possible to use
restrict: 'A'
forcomponent()
method, and I used it widely in my code. Breaking change came with 1.5.0-rc.1 quantum-fermentation (2016-01-15), where onlyrestrict: '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 andcomponents
withrestrict: '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 whencomponent()
method meetsrestrict
other than'E'
?Thank you in advance for looking on this post.
Best regards,
Radek.
The text was updated successfully, but these errors were encountered: