I've a page called 'index.html' it has left pane with multiple links and right pane which contains iframe.
When I click a link from left pane the page(not external sites or pages) should get load inside iframe.
I've a page called 'index.html' it has left pane with multiple links and right pane which contains iframe.
When I click a link from left pane the page(not external sites or pages) should get load inside iframe.
Angular supports ng-src on iframe , so you can set ng-src with your url like this.
The getUrl sanitizes the url before setting it on the iframe. The controller will be as simple as this.
Here is a sample plnkr.
http://plnkr.co/edit/EVkyH8LuCXcsWUi1xnvV?p=preview