diff --git a/apps/di/src/dep.ts b/apps/di/src/dep.ts new file mode 100644 index 00000000..211ceaf2 --- /dev/null +++ b/apps/di/src/dep.ts @@ -0,0 +1,8 @@ +import { Injectable } from '@wikia/dependency-injection'; + +@Injectable() +export class DepClass { + foo() { + return 'foo'; + } +} diff --git a/apps/di/src/main.ts b/apps/di/src/main.ts index a420803c..b684f4c0 100644 --- a/apps/di/src/main.ts +++ b/apps/di/src/main.ts @@ -1 +1,7 @@ -console.log('Hello World!'); +import { Injectable } from '@wikia/dependency-injection'; +import { DepClass } from './dep'; + +@Injectable() +export class MainClass { + constructor(public dep: DepClass) {} +}