I am creating an app which uses angular 6 in frontend and laravel 5.8 as backend. One api returns response as html code that should be saved in html format file and open in browser. How can I do this in angular 6.
I tried below code, but not working
<div class='html-redirect' innerHTML="{{data}}"></div>
I am new to angular.
Any help would be appreciated, thanks.