동적 구성 요소를 구현하려고합니다. 내 요구 사항은 3 가지 클래스 LayoutComponent, MenuService 및 DynamicService입니다. LayoutComponent는 MenuService의 메서드를 호출하여 기본 작업을 수행하고, 작업을 수행 한 후 MenuService의 메서드는 DynamicService의 동적 구성 요소 생성 메서드를 다시 호출합니다.Anguler2 - 처리되지 않은 약속 준수 거부 : ViewContainerRef! (동적 템플릿에서)
여기가
왜 서비스 이름을 'XxxComponent'입니까? (예 :'MenuComponent' 또는'DynamicComponent'? –
명확한 루키 실수 .. – Ranjan