Angular 5:ng xi18n命令不起作用,并引发有关类型和属性的错误

时间:2018-11-26 06:07:28

标签: angular internationalization angular5 angular-i18n

我正在开发一个angular 5 Web应用程序,当我运行“ ng xi18n”时出现这些错误

ERROR in src\app\shared\common\modified-modal\modified-modal.component.html(50,53): : Property 'countries' does not exist on type 'ModifiedModalComponent'.
src\app\shared\common\modified-modal\modified-modal.component.html(71,53): : Property 'provinces' does not exist on type 'ModifiedModalComponent'.
src\app\shared\common\modified-modal\modified-modal.component.html(90,57): : Property 'districts' does not exist on type 'ModifiedModalComponent'.
src\app\login\login.component.html(88,44): : Property 'fasle' does not exist on type 'LoginComponent'.
src\app\login\login.component.html(88,65): : Property 'items' does not exist on type 'LoginComponent'.
src\app\login\login.component.html(88,81): : Property 'disabled' does not exist on type 'LoginComponent'.
src\app\login\login.component.html(98,44): : Property 'fasle' does not exist on type 'LoginComponent'.
src\app\login\login.component.html(98,65): : Property 'items' does not exist on type 'LoginComponent'.
src\app\login\login.component.html(98,81): : Property 'disabled' does not exist on type 'LoginComponent'.
src\app\login\login.component.html(88,103): : Property 'refreshValue' does not exist on type 'LoginComponent'.
src\app\login\login.component.html(89,37): : Property 'selected' does not exist on type 'LoginComponent'.
src\app\login\login.component.html(89,67): : Property 'removed' does not exist on type 'LoginComponent'.
src\app\login\login.component.html(89,95): : Property 'typed' does not exist on type 'LoginComponent'.
src\app\login\login.component.html(98,103): : Property 'refreshValue' does not exist on type 'LoginComponent'.
src\app\login\login.component.html(99,37): : Property 'selected' does not exist on type 'LoginComponent'.
src\app\login\login.component.html(99,67): : Property 'removed' does not exist on type 'LoginComponent'.
src\app\login\login.component.html(99,95): : Property 'typed' does not exist on type 'LoginComponent'.

我不知道如何解决它们,有人有什么想法吗?

0 个答案:

没有答案