{"componentChunkName":"component---src-templates-blog-post-js","path":"/20201120-ng-async-var-in-a-pipe","result":{"data":{"site":{"siteMetadata":{"title":"dfaiv-dev","siteUrl":"https://blog.dfaiv.dev"}},"markdownRemark":{"id":"b6aa9cb7-7afa-53a8-b6af-f59897fec00a","excerpt":"When I Googled for this, I got a bunch of results that just explain the  pipe; but I wanted to know if I could use an async variable into the pipe: Looks like…","html":"<p>When I Googled for this, I got a bunch of results that just explain the <code class=\"language-text\">async</code> pipe; but I wanted to know if I could use an async variable into the pipe:</p>\n<div class=\"gatsby-highlight\" data-language=\"html\"><pre class=\"language-html\"><code class=\"language-html\"><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>div</span><span class=\"token punctuation\">></span></span>Currency {{ 100 | currency:(currencySymbol$ | async)}}<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>div</span><span class=\"token punctuation\">></span></span></code></pre></div>\n<p>Looks like you can. See this <a href=\"https://stackblitz.com/edit/pipe-variable-async?file=src/app/app.component.html\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Stack Blitz</a></p>","frontmatter":{"title":"Angular - Can You Use an Async Variable in a Pipe?","date":"November 20, 2020","description":"","slug":"/20201120-ng-async-var-in-a-pipe"}},"previous":{"frontmatter":{"title":"Powershell - Write-Host from Background Script Block","slug":"/20180723-ps-write-host-from-background-script-block"}},"next":{"frontmatter":{"title":"How Should I Be Hashing Passwords in C#/dotnet core?","slug":"/20201207-security--hashing-pwd-cs"}}},"pageContext":{"id":"b6aa9cb7-7afa-53a8-b6af-f59897fec00a","previousPostId":"82112752-eb70-5ec5-a242-2f7f77ae510d","nextPostId":"0ce2fda4-2096-517a-969f-ff968303e983"}},"staticQueryHashes":["2841359383","3825813668"]}