若邪
若邪
怎么使用@Provide 实现与下面代码一样的功能 ```js @Component({ provide() { return { indexBar: this }; } }) ``` 试过这样写 ```js @Provide() public indexBar = this; ``` 然后 ```js console.log(this.indexBar === this); ``` 一直为 false
- 项目名称:lowcode-vscode - 项目地址:https://github.com/lowcoding/lowcode-vscode - 项目简介 (**100** 字以内):vscode 插件,面向开发人员使用的低代码工具,支持 ChatGPT,包含脚手架管理,代码片段管理,区块物料管理等功能。 - 项目截图 (**6**张以内):    参考 [模板](https://github.com/GitHubDaily/GitHubDaily/issues/8)