code: function subscribe(propsClass) {
      var _this = this;
      var dataBindings = Reflect.getMetadata(constance_1.STATEX_DATA_BINDINGS_KEY, propsClass || this);
      if (dataBindings != undefined) {
          var selectors_1 = dataBindings.selectors || {};
          dataBindings.subscriptions = (dataBindings.subscriptions || []).concat(Object.keys(selectors_1).map(function (key) { return ({
              target: _this,
              subscription: bindData(_this, key, selectors_1[key])
          }); }));
          Reflect.defineMetadata(constance_1.STATEX_DATA_BINDINGS_KEY, dataBindings, this);
      }
  }
docs: Subscribe to the state events and map it to properties
  
  @export