Elements and props
Each component of the React guide is an element: ink- and its name in kebab case (<ink-view>,
<ink-text>, <ink-table>, <ink-path>, <ink-text-field>, <ink-page-number>). Its props:
| React | Angular | |
|---|---|---|
| A string | size="A4" | size="A4" |
| Another value | headerRows={1} | [headerRows]="1" (an attribute is a string: bind numbers) |
true | hyphenate | hyphenate |
A function (paint, hyphenationCallback) | paint={fn} | [paint]="fn" |
The elements are not type-checked in templates: CUSTOM_ELEMENTS_SCHEMA lets any property
through, and the props' errors come when the document is built.
Synced from packages/angular/GUIDE.md in the inkoxide repository.