formly-js / angular-formly

JavaScript powered forms for AngularJS
http://docs.angular-formly.com
MIT License
2.23k stars 405 forks source link

formatters/parsers example #630

Closed koraybalci closed 8 years ago

koraybalci commented 8 years ago

The example here (http://angular-formly.com/#/example/field-options/parsers-and-formatters) seems to be broken for upper casing. Whatever you type in the first input, toUpperCase formatter is not kicking in.

Also, if I modify the second input to use toUpper, although the function is called the return value is not set to the actual field viewValue.

Can anyone look into this, I am having some issues on my formatter/parser stuff as well and was trying to look at a reference, which also seem to have issues..

kentcdodds commented 8 years ago

The example is confusing, but it's definitely still working. Read the descriptions carefully. Sorry it's confusing.

working

koraybalci commented 8 years ago

I am totally confused (I can swear it wasn't working, but won't), probably my bad, too worked up with my own formatter issue and probably hoped this would not work as well.. thx for your time..

kentcdodds commented 8 years ago

Good luck! If you wanna create an example of what you're trying to do and share it in the chat or on stack overflow that'd probably help :-) help.angular-formly.com

phvajjha commented 6 years ago

Is this broken now? I am able to type in lower case characters in the first input box. Am I understanding it completely wrong?