1 Star 2 Fork 0

雷军 / di-example

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.ts 217 Bytes
一键复制 编辑 原始数据 按行查看 历史
雷军军(测试) 提交于 2020-12-02 01:15 . add DI example
import { binding } from './container'
import container from './container'
import A from './services/a'
async function main() {
await binding()
const a: A = container.get('a')
console.log('a.b', a.b);
}
main()
TypeScript
1
https://gitee.com/lei2jun/di-example.git
git@gitee.com:lei2jun/di-example.git
lei2jun
di-example
di-example
master

搜索帮助