I am creating an Ionic2 app. I have a component that I would like to load an external templateUrl into e.x (http:www.example.com/test-view.html).
How do I go about l
You can do it like this:
this.http
.get('http://example.net//test-view1.html')
.map(response => response.text())
.subscribe(html => myVal = html);
Note that html will be sanitized, so if you need something fancy you'll have to use DomSanitizationService. Don't forget about it's Security Risk flag in the docs (;