Can we load an external angular site inside another angular site?

Site1 and Site2 are built in angularjs. Do we have any concept in angularjs (other than an iframe) for loading site2 pages inside the Site1 div? If you have examples, please share this. Thanks in advance.

update 1

Besides the html content loaded from the external url (site2) to the original site (site1), there are many css and js files included in site2 screens whether or not it gets loaded?

+3


source to share


3 answers


you can use

1) ngInclude Check documentation for use



2) ng-bind-html, but you need to take care of ngSanitize . You have to put your html content in a special variable marked as trusted html. You need to use the $ sce service for this.

Hope it helps

+3


source


did using <iframe src="http://www.w3schools.com"></iframe>

below url can help u Using external url in ng-include in AngularJS



+1


source


No need for special angular tags, you can directly use the object tag like this:

<div> 
    <object type="text/html" data="http://validator.w3.org/" width="800px" height="600px">
    </object>
 </div>

      

0


source







All Articles