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

Enable strictTemplates #4757

Closed
xiaoxiangmoe opened this issue Feb 8, 2020 · 2 comments
Closed

Enable strictTemplates #4757

xiaoxiangmoe opened this issue Feb 8, 2020 · 2 comments

Comments

@xiaoxiangmoe
Copy link
Contributor

https://angular.cn/guide/template-typecheck#strict-mode

@dylanvdmerwe
Copy link

We have this enabled in our project and Zorro library 9.0.1 causes many errors with strict checking enabled. Please can this be looked into so this can be enabled in our projects.

@Iyashu5040
Copy link

Please look into enabling this.

There are numerous issues when trying to build a project with the setting enabled.
Angular Version: 9.1.1
"ng-zorro-antd": "9.0.1"

Example Error:
NzSelect binding a templateRef to nzNotFoundContent throws: Type 'TemplateRef<any>' is not assignable to type 'string'. The docs at https://ng.ant.design/components/select/en specify that the type of nzNotFoundContent is string | TemplateRef<void> but I am unable to bind a template ref. This is because the type of nzNotFoundContent in node_modules is nzNotFoundContent: string | undefined;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants