Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework 为什么href内部按钮不工作?_Ionic Framework_Href - Fatal编程技术网

Ionic framework 为什么href内部按钮不工作?

Ionic framework 为什么href内部按钮不工作?,ionic-framework,href,Ionic Framework,Href,如果我使用ng click,它可以正常工作,但是我需要href放下按钮,用类名装饰a元素 <button class="button button-outline button-positive"> <a href="www.google.com">fes</a> </button> 希望这有帮助。在html页面: <a href="www.google.com" class="button button-outline but

如果我使用
ng click
,它可以正常工作,但是我需要
href

放下按钮,用类名装饰
a
元素

<button class="button button-outline button-positive">
    <a href="www.google.com">fes</a>
</button>

希望这有帮助。

在html页面:

<a href="www.google.com" class="button button-outline button-positive">fes</a>

我不知道OP,但它确实帮助了我。我也有同样的问题,不知道出了什么问题。谢谢可能需要在答案中添加一些更改/差异,而不仅仅是发布代码。
<button menuClose ion-item (click)="openExternalPage(urlCgu)"><ion-icon name="ios-paper-outline" color="primary" item-start ></ion-icon> Conditions d'utilisation</button>
urlCgu:string;
this.urlCgu = 'http://xxxxxxx.com';

openExternalPage(page){
    window.open(page);
}