我在Angular2上發生了錯誤。 我需要重新啓動我的電腦,然後再回到項目中,無論如何 - 錯誤不斷顯示!angular 2記住我的錯誤,無論我做什麼
我刪除了所有的代碼,甚至去了,從我的index.html刪除"<my-app>Loading...</my-app>"
代碼片段,錯誤仍然存在。
的錯誤是:
nhandled Promise rejection: Template parse errors:
Can't bind to 'alert' since it isn't a known property of 'div'. ("
</div>
<div class="alert valign center-align" [ERROR ->][alert]="alert" *ngIf="alert">Please Provide Title and Text</div>
"): [email protected]:41 ; Zone: <root> ; Task: Promise.then ; Value: Error: Template parse errors:
Can't bind to 'alert' since it isn't a known property of 'div'. ("
</div>
<div class="alert valign center-align" [ERROR ->][alert]="alert" *ngIf="alert">Please Provide Title and Text</div>
(清除緩存以及..)
任何想法可能是什麼?
這將幫助我們,如果你告訴我們是什麼錯誤。 – StephaneM
@StephaneM謝謝,編輯了這個問題 – thormayer