bleeping
coder
Projects
JavaScript
TypeScript
Python
C++
C#
Go
Vue: How to manipulate a html attribute without value like 'readonly'?
Created on 23 Nov 2015
·
1
Comment
·
Source:
vuejs/vue
Source
Most helpful comment
Just bind it with
v-bind
. If the bound value is falsy the attribute is removed.
>All comments
Just bind it with
v-bind
. If the bound value is falsy the attribute is removed.
Was this page helpful?
0
/ 5 -
0
ratings
Related issues
Feature: Fallback content for partials
bfis
·
3
Comments
关于 form 的 reset 功能
lmnsg
·
3
Comments
v-model directive on <div contenteditable>
bdedardel
·
3
Comments
How about add some hooks to 'v-on' directive, such as 'before' and 'after'
Jokcy
·
3
Comments
$vm.$delete('object.key') doesn't work
franciscolourenco
·
3
Comments
Most helpful comment
Just bind it with
v-bind. If the bound value is falsy the attribute is removed.