Skip to content

Commit 063100c

Browse files
committed
add example
1 parent 006acaa commit 063100c

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

apps/di/src/dep.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Injectable } from '@wikia/dependency-injection';
2+
3+
@Injectable()
4+
export class DepClass {
5+
foo() {
6+
return 'foo';
7+
}
8+
}

apps/di/src/main.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
console.log('Hello World!');
1+
import { Injectable } from '@wikia/dependency-injection';
2+
import { DepClass } from './dep';
3+
4+
@Injectable()
5+
export class MainClass {
6+
constructor(public dep: DepClass) {}
7+
}

0 commit comments

Comments
 (0)