angular2 datepipe 在ios中出错的解决方案

在angular2中格式化日期可用以下方式:
上次消费:{{card.lastDate}}
但在ios不会有任何效果

解决方法:
npm install --save intl
另外在index.html中加入

ok,到此这问题就完美解决了,另外说明下local-data下面有多种语言的格式可以参考!

你可能感兴趣的:(angular2 datepipe 在ios中出错的解决方案)