title: How to create computed properties with Typescript in Vuejs
body: <p>I keep getting this error in browser <code>Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "dataElements"</code></p>
  
  <p>I have <code>@Prop() private dataElements: any[];</code> in my component. This prop is changed by the parent and by the child, also it might need a watcher to do some operations when it is changed.</p>
  
  <p>How can i create a computed property out of it?</p>