聚合物中的firebase-app元素不会通过数据绑定属性更新自身

时间:2016-08-08 23:43:45

标签: firebase polymer polymer-1.0 polymerfire

链接中有一个聚合物元素 https://github.com/Pancake-CMS/authentication-page/blob/master/authentication-page.html

在第55行,我有一个firebase-app元素,其中绑定了config个对象。

当第51行的元素local-configurator获得更新配置时,它会触发更新handleConfigChange对象的config函数。

问题如下。

firebase-app元素似乎显示更新的配置。或者即使它获得了更新的属性,它似乎也没有重新初始化firebase应用程序。

我不确定代码中缺少什么。我想知道是否有人能指出我正确的方向。

由于

1 个答案:

答案 0 :(得分:0)

来自文档:

var
  LDeviceList: Thackrf_device_list;
  LSomePAnsiChar: PAnsiChar;
  LSomeUsbBoardIDs: hackrf_usb_board_id;
  LSomeInteger: Integer;
  LSomePointer: Pointer;
begin
  // fill LDeviceList by the C-written DLL

  LSomePAnsiChar   := LDeviceList.serial_numbers^; // returns a pointer to the first char of a string containing the serials as 'serial_numbers' seems to be a pointer to a pointer (PAnsiChar)
  LSomeUsbBoardIDs := LDeviceList.usb_board_ids^; // gives you the record of type 'hackrf_usb_board_ids'
  LSomeInteger     := LDeviceList.usb_device_index^; // returns the device index as an integer value
  LSomePointer     := LDeviceList.usb_devices^; // returns a pointer as 'usb_devices' seems to be a pointer to a pointer
  // ...
end;

如果您想要为firebase-app元素进行动态配置,请说明。在配置更改并自行设置对象时自己创建

The firebase-app element is used for initializing and configuring your
connection to firebase. It is permanently initialized once attached and
should not be dynamically bound.