Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Load external page inside ng-view with AngularJs in an SPA application

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.

like image 307
l2mt Avatar asked Dec 15 '13 16:12

l2mt


1 Answers

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

http://plnkr.co/edit/DngozsvRhvJ3Ssr0amzK

like image 97
Tasos Bitsios Avatar answered Nov 16 '22 04:11

Tasos Bitsios