Tutorialsplane

Vue js Replace word in String


Vue js Replace word in String– We can use native javascript replace function to replace the string text in VueJS.


Vue js Replace word in String Example

You can replace word/text in string simply as below –

Example:




 


<div id="app">
	//Usage 
<p>{{ text | replaceFilter }}</p>
</div>
 

	
       


Try it »

Run the above example to see the output.