Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: aot build with strict null checks #87

Merged
merged 1 commit into from
Sep 7, 2018
Merged

Conversation

cexbrayat
Copy link
Member

Fixes #86

<ng-container *ngTemplateOutlet="errorDirective.templateRef; context: {$implicit: label, error: actualControl.errors[errorDirective.type]}"></ng-container>
<ng-container *ngTemplateOutlet="errorDirective!.templateRef; context: {
$implicit: label,
error: actualControl.errors![errorDirective.type]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jnizet I went the easy way and just assumed actualControl.errors is not null, but I guess that's always true?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, otherwise shouldDIsplayErrors would be false.

@jnizet jnizet merged commit 193990a into master Sep 7, 2018
@jnizet jnizet deleted the fix/86-strict-null-checks branch September 7, 2018 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants