角度、私は問題として、ローダーをHTMLに生ローダから変更しました:私は以下のようにコーディングした場合https://github.com/jhipster/generator-jhipster/issues/5333はjhipsterでimgタグのsrc属性にデータをバインドすることはできません - 2プロジェクト
が、それは動作します:
<div class="img">
<img src="../../content/images/lotto-euro1.png" alt="Logo here"/>
<p>{{imgSrc}} here </p>
</div>
私は以下のようにSRCにデータをバインド
が、それは動作しません。this.imgSrc = "../../content/images/lotto-euro1.png";
<div class="img">
<img src={{imgSrc}} alt="Logo here"/>
<p>{{imgSrc}} here </p>
</div>
または
<div class="img">
<img [src]="imgSrc" alt="Logo here"/>
<p>{{imgSrc}} here </p>
</div>
任意の助けに感謝。
'[src] =" imgSrc "'は動作するはずです...コンソールのエラーです。 –
以下のように検査:イメージは表示できません。私はこれがconfig webpackの問題だと思うが、 '[src] =" imgSrc "'は動作するはずだが、 –