请教各位,我在angular2里面想要使用es7的部分特性,比如Array.observe(),用的是vscode,会报错,比如:
private serviceTabs = this.tabControlServiceModal.tabs;
Array.observe(serviceTabs, function(changes) {
this.updatePagination();
});
特性库的引用:
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/set';
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';
import 'core-js/es7/observe';
import 'zone.js/dist/zone';
现在有个疑问,如何知道Array.observe()是属于哪个es7特性,
import 'core-js/es7/observe';是我自己乱写的,不知道对不对,求教,谢谢
How is observation a feature of ES2016? Library references are also a problem. On the other hand, the current ES2016 feature code cannot be converted into identifiable and executable code. For example, ES5 will also report errors, babel plugins