title: async property vs object property async template angular
body: <p>I am reading an angular code and I see two ways to do the async in the angular templates.</p>
  <ol>
  <li><p><code>*ngIf=&quot;locals$ | async as locals&quot;</code></p>
  </li>
  <li>
  <pre><code>*ngIf=&quot;{
    locals: locals$ | async,
   } as objectData&quot;
  </code></pre>
  </li>
  </ol>
  <p>Are there advantages to using one way or another or what is the best way and why?</p>