Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hidden inputs do not work for objects #125

Open
4jo3i6uj32we4oig opened this issue Feb 4, 2015 · 0 comments
Open

Hidden inputs do not work for objects #125

4jo3i6uj32we4oig opened this issue Feb 4, 2015 · 0 comments

Comments

@4jo3i6uj32we4oig
Copy link

Hello,

"_el.attr('value', scope.$eval(_el.attr('ng-model')));" (line 157)

This seems to only work if the ng-model is not an object or of some other complex structure. I wanted to give it a token (as object), but it kept converting it to [object Object]. (I tried stringifying it and stuff, it seems to not be a real object. Serversided I cannot read it as well.)

According to the docu it only allows a String or Number: http://api.jquery.com/attr/#attr2
Which is quite confusing because you can actually set the directive "value" to an object manually..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant