Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
l6zy opened this issue Jul 12, 2024 · 1 comment

Comments

@l6zy
Copy link

l6zy commented Jul 12, 2024

问题描述

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

重现链接

重现步骤

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

预期行为

正常使用,不出现提示

平台

  • 操作系统: Window
  • 网页浏览器: Microsoft Edge
  • X6 版本: 2.18.1
  • x6-angular-shape版本: 2.0.2

屏幕截图或视频(可选)

image

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 12, 2024

👋 @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant