私はangular2に画像を挿入しようとしています。 私の画像の名前はmypicture
という変数に保存されています。 このようにして<img [src]="../../../public/img/{{mypicture}}" />
を試しましたが、うまくいきませんでした。私は、コンソールでこのエラーが表示さ角度2の相対パスで画像を挿入
:
Error: Uncaught (in promise): Template parse errors:
Parser Error: Got interpolation ({{}}) where expression was expected
「」は動作しません。 – YOU