- 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"