Skip to content

Commit

Permalink
fix(language-service): pass generic argument to context`
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhvarma12 committed Feb 14, 2021
1 parent a8bd7aa commit 26ee78e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/ngx-var/src/lib/ngx-var.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class Context<T = unknown> {
selector: '[ngxVar]',
})
export class NgxVarDirective<T = unknown> implements OnInit {
private _context = new Context();
private _context = new Context<T>();

@Input()
set ngxVar(value: T) {
Expand All @@ -51,7 +51,7 @@ export class NgxVarDirective<T = unknown> implements OnInit {

constructor(
private _vcr: ViewContainerRef,
private _templateRef: TemplateRef<Context>
private _templateRef: TemplateRef<Context<T>>
) {}

ngOnInit() {
Expand Down

0 comments on commit 26ee78e

Please sign in to comment.