角度绑定导致超出最大调用堆栈大小

时间:2017-02-15 14:39:55

标签: angularjs rxjs rxjs5

我有一个非常简单的组件,比如

App.component('mxComponentOverlay', {
  template: '<div></div>',

  bindings: {
    input: '=?',
  },

  controller: ComponentOverlay,
});

输入是一个对象,所以我在做:

  <mx-component-overlay
     input="{ 'icon': 'add', 'subject': $ctrl.subject }">
  </mx-component-overlay>

$ctrl.subject是一个RxJS 4,Subject,迁移到RxJS 5,这导致Maximum call stack size exceeded错误。

如果我这样做:

  <mx-component-overlay
     input="$ctrl.subject">
  </mx-component-overlay>

我没有这个问题。知道是什么导致这个吗?

更新

jsbin that reproduces the issue

0 个答案:

没有答案