How do I open inAppBrowser using Angular JS?

做~自己de王妃 提交于 2019-12-13 04:33:31

问题


I am new to using Angular JS and have a question regarding the syntax. I am using Angular with Phonegap build and require an inAppBrowser. The inAppBrowser opens with the function window.open. I need to pass the url which is in {{info.link}} as shown below. I also need other parameters after the url.

    <div ng-repeat="info in rider">

     <ul data-role="listview"  data-inset="false" data-theme="a" >

         <li><a href'#' onclick=window.open('{{info.link}}' ,'_blank','location=yes,toolbar=yes,allowInlineMediaPlayback=yes')>{{info.name}}</a></li>
     </ul>
    </div>

I can not get the link to work and the javascript console just displays info.link. Is my syntax incorrect or is there another problem that I am missing? Thanks in advance for any help!

来源:https://stackoverflow.com/questions/31497543/how-do-i-open-inappbrowser-using-angular-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!