admin管理员组

文章数量:1315233

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.

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.

Thanks for your help.

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.

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.

http://plnkr.co/edit/vkAvZ2hGUjHlfHy0ul1z

Thanks for your help.

Share Improve this question edited Dec 15, 2013 at 18:14 m59 43.8k14 gold badges121 silver badges139 bronze badges asked Dec 15, 2013 at 16:55 l2mtl2mt 5502 gold badges7 silver badges20 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

Why not just use an iframe inside your partial template? (second.html)

http://plnkr.co/edit/DngozsvRhvJ3Ssr0amzK

本文标签: javascriptLoad external page inside ngview with AngularJs in an SPA applicationStack Overflow