How can I add specific attribute to the element based on the Boolean value?
<video ng-attr="{autoplay:is_autoplay}">
...
How can I add specific attribute to the element based on the Boolean value?
<video ng-attr="{autoplay:is_autoplay}">
...
It doesn't look like angular lets you set attributes currently (ng-attr-class doesn't tend to work). A slightly redundant workaround would be to do this:
<video autoplay ng-if="is_autoplay">
<video ng-if="!is_autoplay">