title: Angular - How to resolve "the declaration was marked as deprecated" for .subscribe in ngOnInit()
body: <p>In the typescript of Angular-13, I got this code:</p>
  <pre><code>   ngOnInit(): void {
      this.appSettingsService.getSettings()
        .subscribe(settings =&gt; this.settings = settings,
        () =&gt; null,
        () =&gt; {
           this.defaultSidebarColor = this.settings.defaultSidebarColor;
           this.defaultBrandlogoColor =  this.settings.defaultBrandlogoColor;
        });
    }
  </code></pre>
  <p>But an error came up as shown here:</p>
  <blockquote>
  <p>&quot;the declaration was marked as deprecated&quot; for .subscribe</p>
  </blockquote>
  <p>And I got .subscribe crossed.</p>
  <p>How do I get this sorted out?</p>
  <p>Thank you in advance.</p>