Skip to content
Inkoxide

Search covers every page and heading of the docs. Use ↑ ↓ and ↵.

Content per page

Edit this page

The render prop of ink-text and ink-view is an ng-template in Angular, given the page as its context:

<ink-footer>
  <ink-text [render]="footer" />
  <ng-template #footer let-page>Page {{ page.pageNumber }} of {{ page.totalPages }}</ng-template>
</ink-footer>

let-n="pageNumber" reads one field. In a component inside the template, injectPage() (or inject(INK_PAGE)) gives the page. <ink-page-number> and <ink-total-pages> are simpler where they do.

Synced from packages/angular/GUIDE.md in the inkoxide repository.