2017-12-05 2 views
1

div(.test)内に私の角プロジェクト(http://test.comと記載)を表示する必要があります。 iframe、object、embedを使わずにdiv内の角型プロジェクトを表示することは可能ですか? .Hereは、私のコードの.ANYのヘルプをごapp.component.htmlあなたが何をしたいの内側にあなたの<app-root></app-root>を置くことができるの進歩表示div内の4つのプロジェクト(.testクラス)

<html> 
<head> 
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> 
    <script> 
     $(document).ready(function() { 
      $.ajax({ 
       url: 'http://test.com', //Pass URL here 
       type: "GET", //Also use GET method 
       success: function (data) { 
        $('.test').html(data); 
       } 
      }); 
     }); 
    </script> 

</head> 
<body> 

    <div> Div of base html</div> 
    <div class="test"></div> 

</body> 

</html> 

答えて

0

で素晴らしい.Thanksになります:

<header (menuToggle)="sideMenu.toggle()"></header> 
 
<menu [menu]="menu" #sideMenu></menu> 
 
<div> 
 
    <app-root></app-root> 
 
</div> 
 
<footer></footer>

これがされ私のapp.component.htmlたとえば、

関連する問題