I am the only one who gets an empty formData {} after adding I am working with the latest version of angular 2.
let formData: FormData = new FormData() formData.append('key','value') console.log(formData)
Result:
FormData { }
FormDatais not a simple js object, API link: https://developer.mozilla.org/en/docs/Web/API/FormData
FormData
let data = new FormData(); data.append('key', 'value'); console.log(data.get('key'))
Source: https://habr.com/ru/post/1671410/More articles:How does the bluetooth a2dp profile work? - androidИзмените цвет графика в зависимости от плотности (хранящейся в массиве) в линейном графике в matplotlib - pythonHaskell returns type confusion - haskellMarkLogic: Failed to update host name - waiting for retry - amazon-cloudformationdjango nginx: [emerg] open () "/ etc / nginx / proxy_params" failed (2: There is no such file or directory) in / etc / nginx / sites -enabled / myproject: 11 - djangoapp: processDebugResources - IllegalArgumentException (no error message) - androidLint failed while using gradle build android - android applicationThe PNG / JPEG view of CIImage always returns nil - swiftHow to get single values and sum total in JSON using JS - jsonKeras Weighted Loss Graphics Card - deep-learningAll Articles