Guest User

Untitled

a guest
Oct 8th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <li *ngFor="let item of IndexChap; let i = index">
  2.  
  3. <!-- path route -->
  4. <a routerLink="/tableofcontents/{{item.name}}"> <span class='chapters'> {{i+1}}</span>
  5. . <span> {{item.name}}</span>
  6. </a>
  7.  
  8.  
  9. <ul *ngFor="let subItem of item.subItems"[attr.id]='subItem'>
  10. <li>
  11. <a [routerLink]="['/tableofcontents', subItem.name]" [fragment]="subItem.name"> {{ subItem.name }}</a>
  12. </li>
  13. </ul>
Advertisement
Add Comment
Please, Sign In to add comment