# テンプレートで「string === string」を持つ方法

**URL:** <https://meta.discourse.org/t/how-to-have-if-string-string-in-template/158404>\
**Category:** Development\
**Created:** [2020 年 7 月 21 日午後 4:11 UTC](https://meta.discourse.org/t/how-to-have-if-string-string-in-template/158404 "2020-07-21T16:11:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2020 年 7 月 21 日午後 4:24 UTC](https://meta.discourse.org/t/how-to-have-if-string-string-in-template/158404/2 "2020-07-21T16:24:23Z")

</div>

[Computed Properties - The Object Model - Ember Guides](https://guides.emberjs.com/v3.12.0/object-model/computed-properties/) を使用したいですね。

ただし、Discourse のソースコードを見て、彼ら独自のコーディングスタイルを確認してください。

---

_[View the full topic](https://meta.discourse.org/t/how-to-have-if-string-string-in-template/158404)._
