# Ionic2, angular2, number pipe failing

**URL:** <https://forum.ionicframework.com/t/ionic2-angular2-number-pipe-failing/68442>\
**Category:** ionic-v3\
**Created:** [October 27, 2016, 8:46pm UTC](https://forum.ionicframework.com/t/ionic2-angular2-number-pipe-failing/68442 "2016-10-27T20:46:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielwertheim](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/danielwertheim/32/104240_2.png) [@danielwertheim](https://forum.ionicframework.com/u/danielwertheim)\
**Post date:** [October 27, 2016, 8:46pm UTC](https://forum.ionicframework.com/t/ionic2-angular2-number-pipe-failing/68442/1 "2016-10-27T20:46:53Z")

</div>

Using tabs template created with `ionic version 2.1.1` & `cordova version 6.4.0` tried adding `es6-shim` but can not get this simple `number pipe` to work

```auto
<ion-badge>{{item.sum | number:'1.2-2'}}</ion-badge>

```

Tried to install `cordova-plugin-crosswalk-webview` resulting in `minSdkVersion="16"` and `targetSdkVersion="23"` tested on updated `Android 6.0.1` device

Any pointers on what I’m missing?

---

<div class="post-metadata">

**Author:** ![mirkonasato](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mirkonasato/32/131398_2.png) [@mirkonasato](https://forum.ionicframework.com/u/mirkonasato)\
**Post date:** [October 27, 2016, 8:55pm UTC](https://forum.ionicframework.com/t/ionic2-angular2-number-pipe-failing/68442/2 "2016-10-27T20:55:23Z")

</div>

The [DecimalPipe](https://angular.io/docs/ts/latest/api/common/index/DecimalPipe-pipe.html) docs mention

> WARNING: this pipe uses the Internationalization API which is not yet available in all browsers and may require a polyfill.

---

<div class="post-metadata">

**Author:** ![danbucholtz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/danbucholtz/32/99512_2.png) [@danbucholtz](https://forum.ionicframework.com/u/danbucholtz)\
**Post date:** [October 28, 2016, 2:20am UTC](https://forum.ionicframework.com/t/ionic2-angular2-number-pipe-failing/68442/3 "2016-10-28T02:20:12Z")

</div>

Beyond that, I have been told there are issues with Pipes in Angular 2.0.0 when using `ngc`. We’re looking at upgrading to the latest version which fixes the issue for RC2.

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![danielwertheim](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/danielwertheim/32/104240_2.png) [@danielwertheim](https://forum.ionicframework.com/u/danielwertheim)\
**Post date:** [October 28, 2016, 4:30am UTC](https://forum.ionicframework.com/t/ionic2-angular2-number-pipe-failing/68442/4 "2016-10-28T04:30:59Z")

</div>

Was under the impression that crosswalk wouldn’t need the polyfill for Intl.

Any input on what the preferred way is, for including this in an Ionic2, Typescript app?

---

<div class="post-metadata">

**Author:** ![danielwertheim](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/danielwertheim/32/104240_2.png) [@danielwertheim](https://forum.ionicframework.com/u/danielwertheim)\
**Post date:** [October 28, 2016, 5:21am UTC](https://forum.ionicframework.com/t/ionic2-angular2-number-pipe-failing/68442/5 "2016-10-28T05:21:14Z")

</div>

Is there a roadmap where you can read about upcoming release dates? ETA?

---

<div class="post-metadata">

**Author:** ![mirkonasato](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mirkonasato/32/131398_2.png) [@mirkonasato](https://forum.ionicframework.com/u/mirkonasato)\
**Post date:** [October 28, 2016, 9:56am UTC](https://forum.ionicframework.com/t/ionic2-angular2-number-pipe-failing/68442/6 "2016-10-28T09:56:01Z")

</div>

@danielwertheim You’re right, that browser [should support](http://caniuse.com/#feat=internationalization) Intl. Must be the issue that @danbucholtz mentioned, i.e. [angular/angular#11642](https://github.com/angular/angular/issues/11642).

You should be able to upgrade your Angular dependencies without waiting for a new Ionic release; I’m using Angular 2.1.x and it seems to work fine.

---

<div class="post-metadata">

**Author:** ![danbucholtz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/danbucholtz/32/99512_2.png) [@danbucholtz](https://forum.ionicframework.com/u/danbucholtz)\
**Post date:** [October 28, 2016, 1:22pm UTC](https://forum.ionicframework.com/t/ionic2-angular2-number-pipe-failing/68442/7 "2016-10-28T13:22:42Z")

</div>

We’ve seen parts of ionic-angular break when upgrading to the latest Angular compiler so there were some unintended breaking changes in the Angular release. We’re working on updating for RC2.

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![danielwertheim](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/danielwertheim/32/104240_2.png) [@danielwertheim](https://forum.ionicframework.com/u/danielwertheim)\
**Post date:** [October 28, 2016, 1:44pm UTC](https://forum.ionicframework.com/t/ionic2-angular2-number-pipe-failing/68442/8 "2016-10-28T13:44:24Z")

</div>

So you don’t recommend updating? What is the recommendation then? Polyfill? If so, what is the recommendation in Ionic2 with TS for bringing in polyfills?

Thanks,

//Daniel

---

<div class="post-metadata">

**Author:** ![danielwertheim](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/danielwertheim/32/104240_2.png) [@danielwertheim](https://forum.ionicframework.com/u/danielwertheim)\
**Post date:** [October 28, 2016, 7:18pm UTC](https://forum.ionicframework.com/t/ionic2-angular2-number-pipe-failing/68442/9 "2016-10-28T19:18:42Z")

</div>

Tried with getting Angular 2.1.2 in place as well as latest zone.js and rxjs. Then the `ionic build` command fails. Guess I’ll just remove the usage of the pipe and await next release of Ionic.
