##// END OF EJS Templates
Added tag v1.4.0 for changeset 1a8a956a013f
Added tag v1.4.0 for changeset 1a8a956a013f

File last commit:

r134:511bcc634d65 ioc ts support
r157:f563f4b24ce3 default
Show More
Bar.ts
43 lines | 772 B | video/mp2t | TypeScriptLexer
cin
tests moved under src/ folder...
r50 import { Foo } from "./Foo";
cin
working on fluent configuration, di annotations removed
r134 /* export const service = annotate<Bar>();
cin
tests moved under src/ folder...
r50
cin
fluent configuration interfaces
r127 @service.wire({
cin
configuration draft-1
r119 foo: dependency("foo"),
cin
configuration interfaces moved to di/Configuration module...
r118 nested: {
cin
sync
r121 lazy: dependency("foo", { lazy: true })
},
cin
working on container configuration dsl
r124 host: dependency("host")
cin
working on fluent configuration, di annotations removed
r134 }, "") */
cin
Working on IoC container configuration
r111 export class Bar {
cin
fluent configuration interfaces
r127 barName = "Twister";
cin
tests moved under src/ folder...
r50
cin
Working on IoC container configuration
r111 _v: Foo | undefined;
cin
working on fluent configuration, di annotations removed
r134 constructor(
_opts: {
foo?: Foo;
nested?: {
lazy: () => Foo
},
host: string
cin
sync
r121 },
cin
working on fluent configuration, di annotations removed
r134 s: string
) {
cin
Working on IoC container configuration
r111
cin
corrected code to support ts strict mode...
r115 if (_opts && _opts.foo)
this._v = _opts.foo;
cin
working on fluent configuration, di annotations removed
r134 if (s)
this.barName = s;
cin
tests moved under src/ folder...
r50 }
cin
working on di decorators
r109
cin
working on fluent container configuration
r125 setName(name: string) {
}
cin
working on di decorators
r109 getFoo() {
cin
Working on IoC container configuration
r111 if (this._v === undefined)
cin
working on di decorators
r109 throw new Error("The foo isn't set");
cin
Working on IoC container configuration
r111 return this._v;
cin
working on di decorators
r109 }
cin
tests moved under src/ folder...
r50 }