Javascript 将$scope添加到<;中的url参数;脚本></脚本>;

Javascript 将$scope添加到<;中的url参数;脚本></脚本>;,javascript,angularjs,Javascript,Angularjs,在我的angularjs应用程序中,我的身体中有一个用于mibew聊天的脚本,我所有的脚本都在哪里 <script type="text/javascript">Mibew.ChatPopup.init({"id":"58cfa9cad9451969","url":"http://steora.com\/mibew-chat\/chat?locale=en&email={{authentication .username}}.com&name={{authentica

在我的angularjs应用程序中,我的身体中有一个用于mibew聊天的脚本,我所有的脚本都在哪里

<script type="text/javascript">Mibew.ChatPopup.init({"id":"58cfa9cad9451969","url":"http://steora.com\/mibew-chat\/chat?locale=en&email={{authentication .username}}.com&name={{authentication .username}}","preferIFrame":true,"modSecurity":false,"width":640,"height":480,"resizable":true,"styleLoader":"\/mibew-chat\/chat\/style\/popup"});
但这不起作用

有人能告诉我如何将数据范围扩展到 Thnx


编辑: 我从@koiiey尝试解决方案,但如果我尝试使用这个,每次我点击聊天图标时,它会在新选项卡中打开,而不是在弹出窗口中打开,并且没有来自电子邮件和用户名的数据。我需要找到如何从控制器传递数据的解决方案

$scope.authentication.username = 'Tom';
$scope.authentication.email='1tom@gmail.com';

到index.html

<script type="text/javascript">Mibew.ChatPopup.init({"id":"58cfa9cad9451969","url":"http://steora.com\/mibew-chat\/chat?locale=en&email=_____HERE_____&name=____HERE____","preferIFrame":true,"modSecurity":false,"width":640,"height":480,"resizable":true,"styleLoader":"\/mibew-chat\/chat\/style\/popup"})></script>
Mibew.ChatPopup.init({“id”:“58cfa9cad9451969”,“url”:”http://steora.com\/mibew chat\/chat?locale=en&email=\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
在indexCtrl.js中

$scope.init = function(){
    Mibew.ChatPopup.init({"id":"58cfa9cad9451969","url":"http://steora.com\/mibew-chat\/chat?locale=en&email="+$scopeauthentication.email+".com&name="+$scopeauthentication.username+"","preferIFrame":true,"modSecurity":false,"width":640,"height":480,"resizable":true,"styleLoader":"\/mibew-chat\/chat\/style\/popup"});
}
鉴于

<body ng-init="init()"></body>


为什么不直接用所需的参数调用init?你能告诉我怎么做吗?谢谢我的回答。好吧,我加上@Kelley say。。。。但现在我得到了错误“UncaughtTypeError:无法读取HtmlanchoreElement.onclick中未定义属性“open”的对象,其中属性“open”未定义。
<body ng-init="init()"></body>