Apply to the property that can provide dependency to its children
The index of the dependency
if you want to provide a method, you must write it as arrow function to so that the this won't change when inject
this
Resolved
@Cached("username")username: string;@Cached("register")register = (name: string, password: string): void => { }; Copy
@Cached("username")username: string;@Cached("register")register = (name: string, password: string): void => { };
Apply to the property that can provide dependency to its children