You also can check input mask formatter.
This is a directive and it's called ui-mask
and also it's a part of angular-ui.utils
library.
Here is working: Live example
For the time of writing this post there aren't any examples of using this directive, so I've made a very simple example to demonstrate how this thing works in practice.