Text
readingTime
Localized article reading estimates.
Use it in your component
Standalone component
import { Component } from '@angular/core';
import { ReadingTimePipe } from 'extra-pipe';
@Component({
standalone: true,
imports: [ReadingTimePipe],
template: `{{ "one two three" | readingTime: 200 }}`,
})
export class ExampleComponent {
}
Template
{{ "one two three" | readingTime: 200 }}
Try it live.
The output below runs the packed library. Edit data, not code.
Use double quotes for text, or a number, array, object or null.
Ordered parameters: wordsPerMinute. Locale is controlled separately.
Applied to the live output.
Live template data
readonly value = "one two three";
readonly parameter0 = 200;
{{ value | readingTime: parameter0: "en-US" }}
Rendered output
1 min