当角度组件的模板中存在以下标记时,Angular会引发错误。
Template parse errors: Unexpected closing tag "p"
<p> paragraph begins. <ul> <li>list item 1</li> <li>list item 2</li> </ul> </p>
如何实现这种嵌套。
因为p和ul是元素呈现为块。
p
ul