Is there a way of insert an external web page inside angularjs ng-view
. For example when I press a link with ng-route
in my example I want that a external page load inside my own web page.
有没有办法在angularjs ng-view中插入外部网页。例如,当我在我的示例中按下ng-route的链接时,我希望在我自己的网页中加载外部页面。
In this example, I wish that when I click external, another page should be loaded. I have tried with ng-include and doesn't work.
在这个例子中,我希望当我点击外部时,应该加载另一个页面。我尝试过使用ng-include并且不起作用。
http://plnkr.co/edit/vkAvZ2hGUjHlfHy0ul1z
Thanks for your help.
谢谢你的帮助。
1 个解决方案
#1
5
Why not just use an iframe inside your partial template? (second.html)
为什么不在部分模板中使用iframe? (second.html)
#1
5
Why not just use an iframe inside your partial template? (second.html)
为什么不在部分模板中使用iframe? (second.html)