Why 'this' is not allowed on the left side of assignment
<p>In the component class i have been writing this:</p>

<pre><code>export class myapp{
  detail;

  myarr = ['me', 'myself', 'i'];
  title = this.myarr[0];
  this.detail = this.title ;  //error
}
</code></pre>

<p>why this.detail is not allowed but this.title is allowed, why I have to create new variable, cant I use variable already in the class</p>