Giter Site home page Giter Site logo

eve-sama / x6-angular-shape Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 2.65 MB

Angular shape for X6 2.x

Home Page: https://eve-sama.github.io/x6-angular-shape/

License: MIT License

JavaScript 0.55% TypeScript 78.02% HTML 13.88% SCSS 7.54%
antv-x6 x6-angular-shape

x6-angular-shape's Introduction

image-20240403101717261

Profile Views

x6-angular-shape's People

Contributors

eve-sama avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

10229428

x6-angular-shape's Issues

injector 注入共享服务

register({
  content: ServiceOrchestrationPlumbNodeComponent,
  injector: Injector.create({
    providers: [
      {
        provide: PlumbNodeEventBusService,
        useFactory: () => this.nodeEventBus,
      },
    ],
    parent: this.injector,
  }),
})

通过这种方式给自定义的angular节点组件注入 PlumbNodeEventBusService,期待在节点里面也能使用 PlumbNodeEventBusService。但是发现好像注入不进去,控制台报错
core.mjs:8760 Uncaught NullInjectorError: R3InjectorError(LayoutModule)[PlumbNodeEventBusService -> PlumbNodeEventBusService -> PlumbNodeEventBusService]

  • 有什么方式可以注入进去,并使得节点组件同页面组件共享一个服务吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.