2017-11-27 3 views
0

방금 ​​지시문을 작성합니다.지시어 - 구성 요소

계정 목록 내 선택이고, 나는 그것이

<account-list></account-list> 

으로 파일을 component.html 내가 구성 요소와 나는이 메시지를받은 구문 추가 한 후 추가 : 다음은

Uncaught Error: Template parse errors: 'account-list' is not a known element: 1. If 'account-list' is an Angular component, then verify that it is part of this module. 2. If 'account-list' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("

[ERROR ->]

"):

을 NG 모듈 : 1

나는 Udemy 코스에서 일 했으므로 교사는 말했다.
아직 내 문제를 찾을 수 없습니다.

+1

당신은 모듈에 추가 했습니까? – levi

답변

1

해당 NgModule에서 구성 요소를 선언해야합니다. Angular tutorial here

편집 : 그것은 당신의 파일 이름 "계정 list.component"에 공백이 있음을 스크린 샷에 보이는 당신은 웹팩 것 같다 furthemore : 당신의 하단 패널에 컴파일 실패를 "당신이 무엇인지 우리에게 말해 줄 수 웹팩 오류?