无法使用角度材质按角度访问网格图块中的数据

时间:2018-11-01 12:46:36

标签: angular angular-material

我已经使用角材料网格组件在角中实现了示例应用程序。

当我将数据值放入 ngOnInit(){} 时,我无法获取数据并且出现错误

"Property 'data' does not exist on type 'Tile[]'."

有人可以建议我在这里我错过了什么吗??

请访问我的sample app here

有人请帮我解决这个问题...

1 个答案:

答案 0 :(得分:1)

应该是:

this.tiles = data