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

关于Loader中的Ioc的讨论 #19

Open
fuyifan opened this issue Apr 9, 2018 · 14 comments
Open

关于Loader中的Ioc的讨论 #19

fuyifan opened this issue Apr 9, 2018 · 14 comments

Comments

@fuyifan
Copy link

fuyifan commented Apr 9, 2018

看到Loader中使用了IOC以及Reflect, 在之前的pomelo是没有的, 不知道作者在这块是如何考虑, 是否有示例@mybios

@whtiehack
Copy link
Member

从使用上来说没有影响。一样用的。 与pomelo的结果是一样的。
如果说为什么这样写。那就等等@mybios 回答

@mybios
Copy link
Collaborator

mybios commented Apr 11, 2018

这个原计划是把remote、handler等单件组件通过IOC模式创建的

@Diluka
Copy link

Diluka commented May 18, 2018

希望支持IOC,https://github.com/typestack/typedi 了解一下,我在web项目中用了大量的typestack的库,很好用

@fuyifan
Copy link
Author

fuyifan commented May 20, 2018 via email

@whtiehack
Copy link
Member

nestjs 了解一下。 https://github.com/nestjs/nest
我们的项目在用,和pinus结合的非常好。 handler remote 都可以管理到。

whtiehack added a commit that referenced this issue Dec 6, 2019
Update dependency underscore to v1.9.1
@beiyu98
Copy link

beiyu98 commented Apr 10, 2020

nestjs 了解一下。 https://github.com/nestjs/nest
我们的项目在用,和pinus结合的非常好。 handler remote 都可以管理到。

现在nodejs中确实nestjs最好用了,这个也可以考虑把express替换成nestjs,ioc也确实更加方便

@whtiehack
Copy link
Member

nestjs 了解一下。 https://github.com/nestjs/nest
我们的项目在用,和pinus结合的非常好。 handler remote 都可以管理到。

现在nodejs中确实nestjs最好用了,这个也可以考虑把express替换成nestjs,ioc也确实更加方便

这个还是不建议集成到 pinus里。 会增加很大的学习成本。有需要的可以自己研究。

如果需要的人多我可以放一个简单的demo到 examples里。当然,每个人的理解不一样,只能做为参考。

@zhoujxMT
Copy link

zhoujxMT commented Jan 4, 2021

nestjs了解一下。https://github.com/nestjs/nest
我们的项目在用,和pinus结合的非常好。handler remote都可以管理到。

现在nodejs中确实nestjs最好用了,这个也可以考虑把express替换成nestjs,ioc也确实更加方便

这个还是不建议集成到pinus里。会增加很大的学习成本。有需要的可以自己研究。

如果需要的人多我可以放一个简单的demo到examples里。当然,每个人的理解不一样,只能做为参考。

求demo

@starchen112
Copy link

nestjs 了解一下。 https://github.com/nestjs/nest
我们的项目在用,和pinus结合的非常好。 handler remote 都可以管理到。

现在nodejs中确实nestjs最好用了,这个也可以考虑把express替换成nestjs,ioc也确实更加方便

这个还是不建议集成到 pinus里。 会增加很大的学习成本。有需要的可以自己研究。

如果需要的人多我可以放一个简单的demo到 examples里。当然,每个人的理解不一样,只能做为参考。

求demo

@punk2plus
Copy link

nestjs 了解一下。 https://github.com/nestjs/nest
我们的项目在用,和pinus结合的非常好。 handler remote 都可以管理到。

现在nodejs中确实nestjs最好用了,这个也可以考虑把express替换成nestjs,ioc也确实更加方便

这个还是不建议集成到 pinus里。 会增加很大的学习成本。有需要的可以自己研究。

如果需要的人多我可以放一个简单的demo到 examples里。当然,每个人的理解不一样,只能做为参考。

能提供一个nest版本的demo吗?感谢🙏

@whtiehack
Copy link
Member

这两天我抽时间搞一搞

@whtiehack
Copy link
Member

b2bb4fc

示例加上了

@punk2plus
Copy link

b2bb4fc

示例加上了

thanks

@dubanflorin
Copy link

Where you supposed to call useContainer(nestApp) in NestComponent?

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

9 participants