Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试向 Ember 2.4 中的元素添加 id 以促进自动化测试。但是,链接到的 elementId 似乎没有得到尊重,并且被忽略了。
有什么方法可以强制链接到组件的 id
以下作品:
{{link-to "route" id="elementId"}}
不知道为什么我在最初测试时没有得到这个。在验证这一点时,我一定做错了什么。