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.
ngStyle ignores properties with underscore only when jQuery is installed #7744
Closed
Description
Default expected behaviour:
ng-style="{background_color:'blue'}"
translates tostyle="background-color: blue"
ng-style="{backgroundColor:'blue'}"
translates tostyle="background-color: blue"
- in Plunker(no jQuery): http://plnkr.co/edit/lCBUkbKeqLxtkTpHx0bo?p=preview
When jQuery is installed, the first declaration via undescope is ignored, the output is the following:
ng-style="{background_color:'blue'}"
translates to nothingng-style="{backgroundColor:'blue'}"
translates tostyle="background-color: blue"
- in Plunker(with jQuery): http://plnkr.co/edit/G13qq3ReaMprVnI8p7sv?p=preview
Is there a workaround that would enable properties with underscore to be processed?