私はインラインSVGをionic 3.3.0/Angular 4.1.2〜ng-inline-svgパッケージで使用しようとしています。それは 'DIV' の既知の特性ではないのでinlineSVGにバインドできません
は 'inlineSVG' にバインドできませんエラーを取得
import { HttpModule } from '@angular/http'; import { InlineSVGModule } from 'ng-inline-svg'; @NgModule({ declarations: [AppComponent], imports: [BrowserModule, HttpModule, InlineSVGModule], bootstrap: [AppComponent] }) class AppModule {}
テンプレート
<div class="icon icon-shop" aria-label="My icon" [inlineSVG]="'../../assets/symbol-defs.svg#icon-shop'"></div>
とIM。