angular-input-modified
angular-input-modified copied to clipboard
Compare Types
Be able to in the provider specify if the comparisson of the values needs to be strict (checking types) or only by value. Ex: No detect changes on 1 == '1'
Hello @elier-ultimatejetvacations thanks for the suggestion! However, could you please provide an example of when this could be useful? Thanks you!
For instance, I'm using a select as an ng-model in my form, and the select values are ids. These ids are integers when I get them from the backend, but strings when I select them. Ex:
This is how I get the data from the backend { category_id : 1, name: "test" }
when I assign the ng-model="category_id" to the select it becomes like this: { category_id : "1", name: "test" }
Regards.
On 16/04/16 13:12, Slava Fomin wrote:
Hello @elier-ultimatejetvacations https://github.com/elier-ultimatejetvacations thanks for the suggestion! However, could you please provide an example of when this could be useful? Thanks you!
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/betsol/angular-input-modified/issues/40#issuecomment-210792420
This is a valid feature request. I will consider it if it gets enough likes.