ЮЧ
[DI.Self]
шаманство.Size: a a a
ЮЧ
[DI.Self]
шаманство.T
T
ЮЧ
class Foo extends DI.Base {
static get [DI.Self]() {
return {
name: "Foo",
instanceTag: self => self.id
}
}
constructor({id}) {
this.id = id
}
}
DI.configure({
'Foo': {
[DI.FindByInstanceTag]: self => ({
foo: self => self.id
})
}
})
onst foo1 = new Foo(1)
const foo2 = new Foo(2)
T
ЮЧ
ЮЧ
T
ЮЧ
ЮЧ
T
ЮЧ
T
T
ЮЧ
ЮЧ
T
class Foo extends DI.Base {
static get [DI.Self]() {
return {
name: "Foo",
instanceTag: self => self.id
}
}
constructor({id}) {
this.id = id
}
}
DI.configure({
'Foo': {
[DI.FindByInstanceTag]: self => ({
foo: self => self.id
})
}
})
onst foo1 = new Foo(1)
const foo2 = new Foo(2)
ЮЧ
T