Vishnu Vishnu - 1 year ago 128
AngularJS Question

loading external URL on Dashboard Content

I want to load URL( external URL '') in Dashboard content,I tried with this code

.state('app.urlloading', {
url: '/url-loading',

$window.location.href = '';

templateUrl: 'views/tmpl/url-loading.html'

1) Is it possible to load a external URL in Dashboard content ?, If I click a button on sidebar of the dashboard only dashboard content should display the URL retaining sidebar and header, now whole dashboard is disappearing after clicking the button then redirecting to the google page.

Answer Source

If you change location.href, whole page changes. Static HTML usable from states that static HTML link does not matter is external or not.

<div class="wrapper">
<div class="h_iframe">
    <!-- a transparent image is preferable -->
    <img class="ratio" src=""/>
    <iframe src="" frameborder="0" allowfullscreen></iframe>
<p>Please scale the "result" window to notice the effect.</p>

But you could use iframes like this that is what are you exactly wanting.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download