Compile dynamic HTML in Angular 4/5- something similar to $compile in Angular JS

前端 未结 4 1430
夕颜
夕颜 2020-11-27 16:54

I wanted to receive an HTML data via service call to server(this is for sure. I cannot keep templates in local) and manipulate them internally on how to show it(either as a

4条回答
  •  天命终不由人
    2020-11-27 17:27

    Check this package one https://www.npmjs.com/package/@codehint-ng/html-compiler Or see the source code to see how to compile the HTML string with paired JS object with data and events.

提交回复
热议问题