3
親要素でifバインディングを使用すると、コンテンツセレクタが動作しないようです。たとえば、次のようにAurelia:バインディングとコンテンツセレクタの場合
一部-element.html
<template>
<div if.bind="true">
This will appear
<content></content>
</div>
</template>
app.html
<template>
<some-element>This will not appear</some-element>
</template>
これは私が結合if
を使用していない場合は正常に動作しますが、表示されません<content>
私はif
バインディングを使用します。私がここで間違っていることがあるのですか、これを期待どおりに動作させる方法がありますか?
ああ、ありがとう - 私はGithubの問題を検索するとは思わなかった!代わりに 'show.bind'を使用します。 –
Shadow DOM仕様の最新の変更に従って、 ''タグは、Aureliaのバージョン1では ''タグに置き換えられました。 [Aurelia documenation](http://aurelia.io/hub.html#/doc/article/aurelia/templating/latest/templating-content-projection) –
martin