Closed swastikpareek closed 8 years ago
The correct way to set camel-cased attributes/properties in html is content-type="..."
, not contentType="..."
Yep, what @Scarygami said.
HTML attributes are case insensitive. In Polymer 1.0 we aim to embrace the platform, so you'll need to convert the camelCased propertyNameLikeThis
into the words-with-dashes property-name-like-this
.
I believe polylint will warn about this.
@Scarygami @rictic : Thanks for the information . But don't you guys think that this should be updated in the main iron-ajax doc too?
I have created a local node server that uses mongodb at the backend for CRUD operation . I used iron-ajax in my custom polymer tag (swat-content-load) for making POST request on my local server. I passed the req object in body property of iron-ajax tab and set up the contentType property on it . On a click event of a button I initiated the request using generateRequest() function.
When I initialised the POST request on the server side I was getting a req.body as an empty object.
This is my code `