title: Subscribe is deprecated: Use an observer instead
body: <p>Code from angular 13, I just don't know what should i do here,</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> public createAccount(userObj:any){
      return new Promise&lt;any&gt;((resolve,rejects)=&gt;{
        this.http.post('http://localhost:3000/users',userObj).subscribe(
       (res)=&gt;{
          resolve(res);
        },
        (err)=&gt;{
          rejects(err);
        }
        );
      }
      )
    }</code></pre>
  </div>
  </div>
  </p>