2016-11-06 33 views
4

我已經書面樣品angular2組分,其中最初的結束標記 爲「H2」元素缺少在模板調試Angular2應用

@Component({ 
selector:'rx2', 
template: ` 
<div><h2> RX2 component</h2></div> 
` 
}) 

並且在執行在瀏覽器的應用中,只有下面的錯誤描述是在控制檯中顯示 。

directive_normalizer.js:106Uncaught Error: Template parse errors:(…)

因爲這是隻有1模板線一小部分, 我能夠找出問題並解決它,我的問題是,有沒有在一個更大的情況下,確定此類問題更簡單的方法模板。

回答

6

您可以使用以下方法

步驟1 - 點擊(...)

enter image description here

步驟2 - 查找錯誤

enter image description here