angular.js - Questions about the properties of typescript's Object?
PHP中文网
PHP中文网 2017-05-15 17:11:38
0
1
531

I am developing an angular project using typescript. When writing a pipe, I used Object.values(). As a result, the value of the incoming Object was parsed and displayed without problems, but an error was reported on the console.

Could it be that typescript did not include this method Object.values(), but why is the final result still correct?

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
左手右手慢动作

According to MDN, Object.values() is the content of es2017, so you need to modify tsconfig.json and change the target to es2017

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template