Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229340

Custom SVG loader not working in ionic 2

$
0
0

Okay, I finally got it. I had to change:

const safeHtml: SafeHtml = this.sanitizer.bypassSecurityTrustHtml(html);

to this:

const safeHtml: any = this.sanitizer.bypassSecurityTrustHtml(html); // Need "any" here to coax the SafeHtml into a string for "content" property

Viewing all articles
Browse latest Browse all 229340

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>