【问题标题】:Polymer.dart <property>Changed Functionality Not Working With MapPolymer.dart <property>更改的功能不适用于地图
【发布时间】:2014-01-14 03:35:09
【问题描述】:

我正在使用 Polymer.dart 构建一个 Dart 应用程序。我的聚合物元素中有一张地图,如下所示:

@observable Map theData = toObservable({
  'name':   '',
  'phone':  '',
  'email':  ''
});

...并设置以下方法:

theDataChanged() {
  // ...
}

但是,在进行以下操作后,theDataChanged() 函数不会被调用:

theData['name'] = 'test1';
theData.putIfAbsent('new', () => 'test2');

Maps 是否不支持 &lt;property&gt;Changed() 方法?

【问题讨论】:

    标签: dart dart-polymer


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 2013-08-26
      • 1970-01-01
      • 1970-01-01
      • 2023-03-18
      • 1970-01-01
      • 2015-05-26
      • 2023-04-03
      • 1970-01-01
      • 2021-10-12
      相关资源
      最近更新 更多