angular-input-modified icon indicating copy to clipboard operation
angular-input-modified copied to clipboard

Compare Types

Open elier-lcc opened this issue 9 years ago • 3 comments
trafficstars

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'

elier-lcc avatar Apr 07 '16 16:04 elier-lcc

Hello @elier-ultimatejetvacations thanks for the suggestion! However, could you please provide an example of when this could be useful? Thanks you!

slavafomin avatar Apr 16 '16 11:04 slavafomin

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

elier-lcc avatar Apr 20 '16 13:04 elier-lcc

This is a valid feature request. I will consider it if it gets enough likes.

slavafomin avatar Feb 21 '17 00:02 slavafomin