title: Angular: Console.log(11) is printed first then console.log(1). why?
body: <p>I have a simple submit method, where Console.log(11) is printed first then console.log(1). I need why it is behaving in that way.</p>
  
  <pre><code>submit(value) {
  
      this.secServise.getUserById(this.currentUser.mgId).subscribe( uAddrs =&gt; {
        this.tempUser = uAddrs;
        console.log(1);
      });
  
      if (value[this.keyPwd] !== value[this.keyCPwd]) {
        this.messageService.add({
           severity: 'error',
           summary: 'Password and Confirm Password should match',
           detail: '' 
        });
      } else {
        console.log(11);
      }
  }
  </code></pre>