How to load script file from component html?

后端 未结 1 2064
独厮守ぢ
独厮守ぢ 2020-12-06 03:33

Basically I wanted to load component html specific script file, so that script I\'m going to put script file reference inside component html itself

1条回答
  •  Happy的楠姐
    2020-12-06 03:50

    Working Plunker

    Security

    It looks like Angular takes out script tags from Html templates.

    From the Angular Docs:

    It removes the > tag but keeps safe content, such as the text content of the

提交回复
热议问题