Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-boot-core

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-boot-core

front end SPA frameworks

  • 1.0.16
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

SIMPLE-BOOT-CORE

Sim LifeCycle

  • onCreate: Object create
const option = new CustomSimOption([GlobalAdvice]);
const simpleApplication = new SimpleApplication(AppRouter, option);
simpleApplication.run();
simpleApplication.routing<CustomRouter, CustomModule>(new Intent('/b')).then(it => {
    let moduleInstance = it.getModuleInstance<B>();
    moduleInstance.print();
});

@Sim()
export class AppRouter extends CustomRouter {
    '' = A;
    '/' = A;
    '/b' = B;
    notFound(url: Intent): ConstructorType<Module> | undefined {
        return super.notFound(url);
    }
}


@Sim()
export class B extends CustomModule {
    constructor(private a: A, private option: CustomSimOption) {
        super();
    }
    print() {
        this.a.print();
        console.log('bbb print')
    }
    err() {
        this.publish(new Intent('A://gogo?a=55', 'ddddddddddd'));
        this.publish(new Intent('A://gogo?bb=44&ff=44', '444'));
        this.publish(new Intent('A://gogo?gg=55&sadfsdf=444', '55'));
        throw new UserNotFound('good');
    }
}

Keywords

FAQs

Package last updated on 18 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc