angular.js - How to use some es7 features?
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-05-15 17:07:20
0
1
668

Please tell me, I want to use some features of es7 in angular2, such as Array.observe(), but using vscode, an error will be reported, such as:

private serviceTabs = this.tabControlServiceModal.tabs;
    Array.observe(serviceTabs, function(changes) {
        this.updatePagination();
    });
    

Reference to feature library:

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';是我自己乱写的,不知道对不对,求教,谢谢
曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(1)
大家讲道理

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

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