I developed one filter to replace string, this filter works very well if I user it like :
External link{{updateTraining.externalUrl|replaceHttp}}
I would like to use it also in the input value v-model="updateTraining.externalUrl |replaceHttp " but it's not working !
<div class="col-sm-12">
<div class="form-group">
<label for="inputTitle">External link{{updateTraining.externalUrl|replaceHttp}}</label>
<input autocomplete="nope" class="form-control" id="externalUrl"
placeholder="External link" type="text"
v-model="updateTraining.externalUrl">
<small class="form-text text-danger" v-if="errors.externalUrl"> {{errors.externalUrl[0]}} </small>
</div>
</div>
The error message is :
Property or method "replaceHttp" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.