Use the CountUpDirective in your component
masterImport CountUpDirective from ngx-countup and add it to your component's imports array. You can then apply the directive to any HTML element using the [countUp] input to specify the target number.
import { CountUpDirective } from 'ngx-countup';
@Component({
selector: 'app-some-component',
imports: [
CountUpDirective
],
...
})<h1 [countUp]="345">0</h1>