Attribute value is removed using AngularJS OR condition syntax
See original GitHub issueI have this attribute: (where ||
is or condition in AngularJS)
<element loading="vm.loadingData1 || vm.loadingData2 || vm.loadingData3"></element>'
Running htmlmin
turn that into <element loading></element>
Is this expected?. If it is, I guess I am using a bad standard here to combine multiple boolean condition.
Thanks
Issue Analytics
- State:
- Created 7 years ago
- Comments:10
Top Results From Across the Web
What is the best way to conditionally apply attributes in ...
I am using the following to conditionally set the class attr when ng-class can't be used (for example when styling SVG): ng-attr-class="{{someBoolean ...
Read more >Developer Guide: Directives - AngularJS: API
$compile can match directives based on element names (E), attributes (A), class names (C), and comments (M). The built-in AngularJS directives show in...
Read more >Top 18 Most Common AngularJS Developer Mistakes - Toptal
How can you instantiate new model values? There are two ways, in both of them you pass values to attributes. Consider this MainController:...
Read more >Attribute binding - Angular
Attribute binding syntax resembles property binding, but instead of an element property between brackets, you precede the name of the attribute with the...
Read more >Angular Validation - W3Schools
AngularJS also holds information about whether they have been touched, or modified, or not. You can use standard HTML5 attributes to validate input, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
indeterminate
is a standard HTML boolean attribute for use with<input type="checkbox">
So the solution is to either rename your custom attribute (
ng-indeterminate
?) or don’t usecollapseBooleanAttributes
.fair enough…will do once I get a chance 😉
Thanks for your time! Much appreciate !