Unexpected closing tag “div” error angular2 HTML

匿名 (未验证) 提交于 2019-12-03 01:26:01

问题:

I'm getting some errors in the console and not sure what is the issue is in the HTML. Any help would be appreciated.

error_handler.js:51 EXCEPTION: Uncaught (in promise): Error: Template parse errors: Unexpected closing tag "div" (" Click here to Signup [ERROR ->] "): ResetPassword@22:1 Error: Template parse errors: Unexpected closing tag "div" (" Click here to Signup [ERROR ->] "): ResetPassword@22:1

Please enter your e-mail address and a temporary password will be sent to you.

{{errorMessage}}
{{successMessage}}

回答1:

You've got one double quote too many at *ngIf="errorMessage && !successMessage"":



回答2:

This error occurred when you open an element and don't close its. this error shows up in this example:

   {{facility.Name}}   

As you see I don't close element (should be )

Be careful:

If you use any element properties with its values as the parser can't handle them, the element will be opened and this error occurs( "" at above example).



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!