antvis / X6

🚀 JavaScript diagramming library that uses SVG and HTML for rendering.
https://x6.antv.antgroup.com
MIT License
5.78k stars 1.72k forks source link

Angular17使用setData出现弃用提示 Angular: Replacing the `context` object of an `EmbeddedViewRef` is deprecated. #4361

Open l6zy opened 4 months ago

l6zy commented 4 months ago

问题描述

Angular17之后,直接替换context会提示弃用,应该直接修改context属性而不是替换整个context

重现链接

重现步骤

在Angular17及以上的Angular应用中引入@antv/x6-angular-shape后,注册templateRef,使用setData修改ngArguments

预期行为

正常使用,不出现提示

平台

屏幕截图或视频(可选)

image

补充说明(可选)

No response

x6-bot[bot] commented 4 months ago

👋 @l6zy

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.