2017-06-02 73 views
1

我要將以下角2嵌入

<div id="cometchat_embed_synergy_container" style="max-width:100%;" ></div> 
<script src="/cometchat/js.php?type=core&name=embedcode" type="text/javascript"></script> 
<script> 
    var iframeObj = {}; 

    iframeObj.module="synergy"; 
    iframeObj.style="min-height:420px;min-width:300px;"; 
    iframeObj.src="/cometchat/cometchat_embedded.php"; 

    if(typeof(addEmbedIframe)=="function"){ 
     addEmbedIframe(iframeObj); 
    } 
</script> 

成角2網頁。我對角度很陌生。提前感謝你。

回答

0

事實上Angular 2使用TypeScript來開發任何組件並實現任何功能。我不知道什麼是您的代碼的意思,但如果您只想嵌入代碼,您可以在標記之間的index.html文件中插入此代碼。