title: how to grap input value in html component from service class in order to update a variable this service has
body: <p>Good Day developers, im trying to find the way to grap a value an input html tag has from my service class in the same angular class.This input is attached to an ngForm thus is linked to a model interface component in order to validate this form once is submitted.I tried  to import the same model interface component in the  service class in order to access it from there too, but doesn't work.
  This is the service:</p>
  
  <pre><code>***variable type model interface***
  
  formSignup: signUpForm = {
      nameUser: '',
  }=========&gt;model interface component also imported to service in order to access whichever values user insert in it
  
  ***method where in the variable gets updated accesisng the model interface***
  
   async signUpUser(emailUser: string, passwordUser: string) {
      some code.....
  
    await responseOk.user.updateProfile({
       displayName:this.formSignup.nameUser});===&gt;this is the value i want to update dynamically from the 
                                                   input value
  
      more code......
  }
  </code></pre>
  
  <p>Here my html, model and component.ts components related to my issue:</p>
  
  <pre><code>HTML
      &lt;form #submitSign='ngForm' (submit)="signUp(submitSign.value)"&gt;
        &lt;input type="text" [(ngModel)]="formSignup.nameUser" name="nameUser" class="form-control" 
        id="nameUser"  placeholder="Name " #nameUser="ngModel"
     &lt;/form&gt;
  
  MODEL INTERFACE
  
  export interface signUpForm{
    nameUser?:string,
  }
  
  COMPONENT.TS
  
  formSignup: signUpForm = {
      nameUser:'',
      emailUser: '',
      passwordUser: '',
      confirmPasswordUser: '',
      imageUser: '',
    };
  
  
    constructor(
      private signUserUp: service){}
  
    ngOnInit(): void {}
  
    signUp(value: signUpForm) {
      this.signUserUp
        .signUpUser(value.emailUser, value.passwordUser)
        .then((response) =&gt; {
  
           some code.......
        })
        .catch((error) =&gt; error.messages);
  }
  </code></pre>
  
  <p>Any idea about how to improve this ?Thanks in advance!!!</p>