Skip to content

Release 0.3.0

Latest
Compare
Choose a tag to compare
@william26 william26 released this 05 Jun 12:02
· 10 commits to master since this release
  • Adds support for dependency arrays, allowing the use of je-di in minified scripts:
const module = jedi
  .module()
  .register('dep', 'yourname')
  .service('service1', ['dep', function (dep) {
    this.sayHello = function () {
      `Hello, ${dep}`;
    };
  }])
  .run(['service1', function (service1) {
    console.log(service1.sayHello());
  });

jedi.bootstrap(module);

// Prints "Hello, yourname"