Skip to content

Commit

Permalink
fix(DI): static inject method instead of property
Browse files Browse the repository at this point in the history
  • Loading branch information
bulldetektor authored and jdanyow committed Jul 23, 2018
1 parent 65f5212 commit 69d3eff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation-errors-custom-attribute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface RenderedError {

@customAttribute('validation-errors')
export class ValidationErrorsCustomAttribute implements ValidationRenderer {
public static inject = [DOM.Element, Lazy.of(ValidationController)];
public static inject() { return [DOM.Element, Lazy.of(ValidationController)]; }

@bindable({ defaultBindingMode: bindingMode.oneWay })
public controller: ValidationController | null = null;
Expand Down

0 comments on commit 69d3eff

Please sign in to comment.