Unexpected closing tag “div” error angular2 HTML

前端 未结 2 816
日久生厌
日久生厌 2020-12-20 12:12

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

2条回答
  •  梦毁少年i
    2020-12-20 13:09

    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).

提交回复
热议问题