Angular 角度2货币管道不';t在chrome版本34.0.1847.131 m中工作
这是我的密码。这是我确定的数字。我在firefox上试过这个,效果很好。但在铬上不是Angular 角度2货币管道不';t在chrome版本34.0.1847.131 m中工作,angular,Angular,这是我的密码。这是我确定的数字。我在firefox上试过这个,效果很好。但在铬上不是 <div *ngIf="credit" class="row"> <div class="span-12"> <!-- table content 1 --> <div class="head_1"> <span class="title_1">{{credit.id}}</span>
<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>
对我来说很好
这个错误显然与货币管道无关
@Component({
selector: 'my-app',
providers: [],
template: `
<div>
<h2>Hello {{name}}</h2>
<span class="title_summ">{{credit.creditSum | currency:'USD':true}}</span>
`,
directives: []
})
export class App {
credit = {creditSum: 10};
constructor() {
this.name = 'Angular2'
}
}
@组件({
选择器:“我的应用程序”,
提供者:[],
模板:`
你好{{name}
{{credit.creditSum}货币:'USD':true}
`,
指令:[]
})
导出类应用程序{
信用={creditSum:10};
构造函数(){
this.name='Angular2'
}
}
我想你需要提供更多信息。我在Chrome中试用了my Plunker。@GünterZöchbauer它在Chrome中工作吗?我也试过你的例子——同样的问题。看起来我的浏览器有问题。是的,我的新机器上只安装了Chrome(49.0.2623.56 beta版(64位))。奇怪。我尝试了同样的实现。不起作用。显示相同的错误。我用的是2.0.0-beta.6版本。好吧,所以看起来相关的问题是:“是什么让polyfill起作用?”
@Component({
selector: 'my-app',
providers: [],
template: `
<div>
<h2>Hello {{name}}</h2>
<span class="title_summ">{{credit.creditSum | currency:'USD':true}}</span>
`,
directives: []
})
export class App {
credit = {creditSum: 10};
constructor() {
this.name = 'Angular2'
}
}