Angular, onLoad function on an iFrame

前端 未结 4 968
故里飘歌
故里飘歌 2020-11-28 06:16

I have this iframe working with basic JavaScript:


<         


        
4条回答
  •  清歌不尽
    2020-11-28 07:17

    For anyone ending up here, the ng-onload plugin is the perfect solution to this issue. It doesn't pollute the global namespace and doesn't require you to create one-off directives when all you want is to call a simple scope function.

提交回复
热议问题