I'm using vue-js2.3
and element-ui
.
I would like to define the validation rules of my form dynamically
Example
https://jsfiddle.net/cgL6y9kq/
Problem
The required
is not dynamically defined by phoneMandatory
Questions
How can I change the attribute on an existing rule dynamically? How can I add or remove rules dynamically ?