我的应用程序使用Angularjs和ionic进行构建,使用cordova作为混合移动应用程序,当尝试渲染从后端接收的svg内容时,应用程序无法呈现预期图。如何在离子内容中呈现svg
这是我的代码看起来像
<ion-tab title="Diagram" icon-on="mcfly">
<ion-view>
<ion-content class="padding" ng-class="{'has-loading': header.isLoading}">
<h4>System Diagram</h4>
{{diagram}}
</ion-content>
</ion-view>
</ion-tab>
但我看到的是SVG数据,而不是形象,我错过任何声明或任何东西吗?
感谢
彼此的答案,我发现是http://stackoverflow.com/questions/9381926/angularjs-insert-html-into-view – Amit