Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
Bielik20 committed Oct 27, 2022
1 parent 51d537a commit 2c29014
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions apps/di/src/dep.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Injectable } from '@wikia/dependency-injection';

@Injectable()
export class DepClass {
foo() {
return 'foo';
}
}
8 changes: 7 additions & 1 deletion apps/di/src/main.ts
Original file line number Diff line number Diff line change
@@ -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) {}
}

0 comments on commit 2c29014

Please sign in to comment.