Angular.js, iframes and Firefox

后端 未结 1 1874
鱼传尺愫
鱼传尺愫 2021-01-06 09:57

I have a feeling I\'m missing something obvious with this, but I can\'t make iframes to work in Firefox with Angular.js routes.

Here is a sample plunker code

相关标签:
1条回答
  • 2021-01-06 10:27

    @jpmorin so, I just found a workaround, which is kind of inspired by your previous suggestion. So, after I changed the iframe source from #/child to index.html/#/child, everything works! No need for multiple includes of angular etc. I don't fully understand why the original route fails in FF, but pointing directly to the file that bootstraps the app and then adding the route works.

    0 讨论(0)
提交回复
热议问题