title: How can i change the attribute from other component in angular
body: <p>I have two components:</p>
  
  <p>Register and Login.</p>
  
  <p>In the RegisterComponent i have the anchor:</p>
  
  <pre><code>&lt;a id="titleClient"&gt;Already have a account? Click here&lt;/a&gt;
  </code></pre>
  
  <p>I need when the user click in this anchor set the Login attribute already_client to true:</p>
  
  <pre><code>export class LoginComponentimplements OnInit {
    already_client: boolean
    ...
  }
  </code></pre>
  
  <p>I try to input property but i use  to show this components, i can't use <code>&lt;app-logincomponent [already-client]="true"&gt;</code> <br><br>
  How can i do this?</p>
  
  <p>Thanks</p>