这是我的代码。 credit.creditSum - 这是我确定的数字。我在firefox中尝试了这一点,它的工作原理。但在铬不是。Angular 2货币管道在铬版本中不起作用版本34.0.1847.131 m
<div *ngIf="credit" class="row">
<div class="span-12">
<!-- table content 1 -->
<div class="head_1">
<span class="title_1">{{credit.id}}</span>
<span class="title_summ">{{credit.creditSum | currency:'USD':true}}</span>
<span class="title_ccy">EUR</span>
</div>
<!-- end table content 1 -->
</div>
</div>
这里是一个错误
EXCEPTION: TypeError: Cannot redefine property: length in [{{credit.creditSum | currency:'USD':true}} in [email protected]:33] browser_adapter.ts:73
ORIGINAL EXCEPTION: TypeError: Cannot redefine property: length browser_adapter.ts:73
ORIGINAL STACKTRACE: browser_adapter.ts:73
TypeError: Cannot redefine property: length
at defineProperty (native)
我想你需要提供更多信息。 –
我在Chrome中试过我的Plunker。 –
@GünterZöchbauer它是否在铬?我也试过你的例子 - 同样的问题。看起来像我的浏览器问题。 –