Skip to content

Commit

Permalink
Test inject
Browse files Browse the repository at this point in the history
  • Loading branch information
guyca committed Nov 14, 2024
1 parent fe516c0 commit bca901c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Inject } from "react-obsidian";

export class Foo {
@Inject() public readonly bar!: string;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Inject } from "react-obsidian";
export class Foo {
@Inject("bar")
public readonly bar!: string;
}

0 comments on commit bca901c

Please sign in to comment.