1.0.0-beta.31 (2021-06-01)
Features
- core: add MathPipe and MathConstantPipe (500b5b8)
MathPipe
and MathConstantPipe
can be utilized to quickly calculate Math expression or use Math constants on the template
<span>{{ 1 | mathConst:'PI' }}</span>
<!-- equals to Math.PI -->
<span>{{ 0.5 | mathConst:'PI' }}</span>
<!-- equals to Math.PI / 2 -->
<span>{{ 1 | math:'sin' }}</span>
<!-- equals to Math.sin(1) -->
- core: add RepeatDirective (25b2ea9)
RepeatDirective
is similar to ngFor
but is meant to iterate over an amount of something rather than a list. For example, to loop over 30 days to build a calendar.
<ngt-mesh *repeat="let _ of 10000"></ngt-mesh>
Bug Fixes