Skip to content

Commit

Permalink
fix(component): remove ? from LetViewContext props to prevent 'possib…
Browse files Browse the repository at this point in the history
…ly undefined' error in strict mode
  • Loading branch information
markostanimirovic committed Jan 11, 2021
1 parent ce28b44 commit 81f1022
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/component/src/let/let.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import { createRender } from '../core/cd-aware/creator_render';

export interface LetViewContext<T> {
// to enable `let` syntax we have to use $implicit (var; let v = var)
$implicit?: T;
$implicit: T;
// to enable `as` syntax we have to assign the directives selector (var as v)
ngrxLet?: T;
ngrxLet: T;
// set context var complete to true (var$; let e = $error)
$error?: boolean;
$error: boolean;
// set context var complete to true (var$; let c = $complete)
$complete?: boolean;
$complete: boolean;
}

/**
Expand Down

0 comments on commit 81f1022

Please sign in to comment.