angularjs - How to change window open url in ionic? -


i developing ionic application , added follow plug in

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git

when click above url loading application

<a href="#" onclick="window.open('http://192.168.8.157:8081/temp/001', '_system', 'location=yes'); return false;">                                 open application </a> 

but problem is,

if put http://192.168.8.157:8081/temp/{{id}}

error

error: [$compile:nodomevents] interpolations html dom event attributes disallowed.  please use ng- versions (such ng-click instead of onclick) instead. http://errors.angularjs.org/1.4.3/$compile/nodomevents     @ http://localhost:8100/lib/ionic/js/ionic.bundle.js:13380:12     @ attrinterpolateprelinkfn (http://localhost:8100/lib/ionic/js/ionic.bundle.js:21823:25)     @ invokelinkfn (http://localhost:8100/lib/ionic/js/ionic.bundle.js:21962:9)     @ nodelinkfn (http://localhost:8100/lib/ionic/js/ionic.bundle.js:21441:11)     @ compositelinkfn (http://localhost:8100/lib/ionic/js/ionic.bundle.js:20853:13)     @ compositelinkfn (http://localhost:8100/lib/ionic/js/ionic.bundle.js:20857:13)     @ publiclinkfn (http://localhost:8100/lib/ionic/js/ionic.bundle.js:20728:30)     @ boundtranscludefn (http://localhost:8100/lib/ionic/js/ionic.bundle.js:20872:16)     @ controllersboundtransclude (http://localhost:8100/lib/ionic/js/ionic.bundle.js:21489:18)     @ ngrepeataction (http://localhost:8100/lib/ionic/js/ionic.bundle.js:40504:15) <a class="item ng-binding" href="#" onclick="window.open('http://192.168.8.157:8081/temp/'{{id}}, '_self', 'location=no'); return false;"> 

if not clear comment, thank

its not replacing {{id}}

so, can this

<a ng-click='openapplication()'></a>

$scope.openapplication = function () {     window.open('http://192.168.8.157:8081/temp/'+ $scope.id, '_system', 'location=yes');                             }; 

assuming $scope.id has value need


Comments