사용자 도구

사이트 도구


angular:ng-template-ng-container

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
angular:ng-template-ng-container [2021/10/01 14:20] – 바깥 편집 127.0.0.1angular:ng-template-ng-container [2025/04/15 10:05] (현재) – 바깥 편집 127.0.0.1
줄 1: 줄 1:
 +====== ng-template와 ng-container ======
  
 +@defer
 +ViewContainerRef
 +
 +<code javascript>
 +@defer (뷰포트에서) { 
 +  < comment-list />
 +} @placeholder { 
 +  <!-- 댓글이 로드될 때까지 표시할 자리 표시자 콘텐츠 --> 
 +  < img  src = "comments-placeholder.png" >
 +}
 +
 +
 +@defer (뷰포트에서) { 
 +  < comment-list />
 +} @loading { 
 +  로드 중… 
 +} @error { 
 +  로드 실패 :( 
 +} @placeholder { 
 +  < img  src = "comments-placeholder.png" >
 +}
 +
 +</code>