我需要在控制器中处理一些参数,并生成指向模板的链接。我不知道如何尝试通过分配{{url}}
<button class="button" onclick="window.open('{{url}}', '_system', 'location=yes'); return false;">open</button>
http://www.someurl.com/someservice.php?param=param&anotherparam=another
如何做呢?
您应该在其中不使用ng-click
插值的方式使用{{}}
。
标记
<button class="button" type="button" ng-click="window.open(url, '_system', 'location=yes'); return false;">
open
</button>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句