从HTML调用typescript文件中的函数不会';t显示返回的变量
所以我的HTML中有这个从HTML调用typescript文件中的函数不会';t显示返回的变量,html,angular,typescript,ionic-framework,ionic3,Html,Angular,Typescript,Ionic Framework,Ionic3,所以我的HTML中有这个 <h2>{{getCryptoName()}} price in {{getCurrencyName()}} is:</h2> <ion-list> <div> {{getPrice()}} </div> </ion-list> 知道它为什么不显示在HTML上吗?看起来函数中缺少了return语句 getCryptoName(){ this.nombres
<h2>{{getCryptoName()}} price in {{getCurrencyName()}} is:</h2>
<ion-list>
<div>
{{getPrice()}}
</div>
</ion-list>
知道它为什么不显示在HTML上吗?看起来函数中缺少了return语句
getCryptoName(){
this.nombresCrypto[this.Crypto];
}
getCurrencyName(){
this.nombresCrypto[this.Crypto];
}
getPrice(){
this.monedas[this.Crypto.toUpperCase()][this.Currency.toUpperCase()];
}