內移動時保持不變。 在此示例中,\[class.odd\]="odd" 保留在\ 上。
let 關鍵字宣告瞭一個模板輸入變數,您可以在模板中引用該變數。 此示例中的輸入變數是 hero、i 和奇數。 解析器將 let hero、let i 和 letodd 轉換為名為 let-hero、let-i 和 let-odd 的變數。 let-i 和 let-odd 變數變為 let i=index 和 let odd=odd。 Angular 將 i 和 odd 設定為上下文index 和 odd 屬性的當前值。
nav 節點下有兩層 `cx-generic-link`:

NgForOf 提供了下列預設的 `exported values`:


以遞迴方式渲染而成:

cx-footer-navigation 下面有三個 nav 節點。
誰呼叫(`消費`)的這個 selector?
沒有更外層的 HTML wrapper 了:

說明是 CMS 驅動。
footer navigation 列印出的 data:

footer area 列印出的資料:

2,2,4 的 length 正好和 footer 的實際內容吻合:

footer navigation Component 包含 footer content slot:

navigation nodes:`Footer Pages`

三個子節點,充分體現了 CMS 驅動的設計原則:


Twitter Link 是一個 Component,型別為 CMSLinkComponent:

對應的 Angular Component 名稱為:`LinkComponent`


cx-link 也是 generic link 的消費者之一:


Twitter link 是一個 Component?

ID: FooterNavigationComponent


navigation node:Footer Pages

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2856678/,如需轉載,請註明出處,否則將追究法律責任。