How do I open inAppBrowser using Angular JS?

2019-09-08 12:59发布

问题:

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!