我正在尝试使用angularfire2 "angularfire2": "^4.0.0-rc.1",
。它给了我错误:Property 'set' does not exist on type 'FirebaseListObservable
。
代码是
const userList:FirebaseListObservable<any> = this._angualrFireDB.list('/users');
userList.set(this.userAuthData.uid,tempUserData).then(...)
由于某种原因,我无法使用RC.2,因为没有与cordova正确集成。
请帮忙
答案 0 :(得分:0)
angularfire2
中有open issue set
关于列表的<TreeView ItemsSource="{Binding ComponentsToDraw}">
<TreeView.Resources>
<HierarchicalDataTemplate DataType="{x:Type local:Component}" ItemsSource="{Binding ComponentsToDraw}">
<Grid Canvas.Left="{Binding X}" Canvas.Top="{Binding Y}" Width="{Binding Width}" Height="{Binding Height}" Background="{Binding Color}">
<TextBlock Margin="8,5,0,0" FontWeight="Bold" Text="{Binding Name}" />
</Grid>
</HierarchicalDataTemplate>
<Style TargetType="{x:Type TreeViewItem}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TreeViewItem}">
<Canvas>
<ContentPresenter x:Name="PART_Header" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" ContentSource="Header">
<ContentPresenter.Style>
<Style TargetType="ContentPresenter">
<Setter Property="Canvas.Left" Value="{Binding Path=X}" />
<Setter Property="Canvas.Top" Value="{Binding Path=Y}" />
</Style>
</ContentPresenter.Style>
</ContentPresenter>
<ItemsPresenter/>
</Canvas>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</TreeView.Resources>
</TreeView>
支持。
显然尚未完全实施,应从文档中删除。