0

Bootstrap example:

<a class="btn btn-lg btn-default"
     data-toggle="modal"
     data-target="#remoteModal"
     href="remote-page.html">Open modal window</a>

Could I do the same using Angular bootstrap (http://angular-ui.github.io/bootstrap/) or using another library?

1
  • Does your url returns you html page when you hit it? I don't have any idea about angularjs Commented Dec 16, 2016 at 15:16

1 Answer 1

1

You will need to "embed" the remote page on your modal markup, an <iframe> is one way to do it.

<div class="modal-body" id="modal-body">
    <iframe src="https://mdn-samples.mozilla.org/snippets/html/iframe-simple-contents.html" width="400" height="300">
        <p>Your browser does not support iframes.</p>
    </iframe>
</div>

Here's a forked plunk from the modal examples.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.