#Angular 2 - equivalents of `ngModel.$formatters/$parsers`

199 views
Skip to first unread message

Tolu Olowu

unread,
Mar 31, 2016, 4:47:47 AM3/31/16
to AngularJS
Please what are the angular 2 equivalents of ngModel.$formatters/$parsers and where can I find some documentations for same? My use-case is formatting an input by applying a directive. Thanks


Sander Elias

unread,
Apr 3, 2016, 10:39:30 AM4/3/16
to AngularJS
Hi Tolu,

From angular 1.4 on(including 2.x) you can use getters/setters for almost everything you can do with $formatters/$parsers.

Regards
Sander
Reply all
Reply to author
Forward
0 new messages