696 questions
3
votes
3
answers
169
views
Trying to inject the DecimalPipe into an Angular service
I understand how to use the DecimalPipe in an Angular 20 HTML template, while importing it in the component code.
However, I cannot figure out how to use the DecimalPipe in an Angular service.
I keep ...
0
votes
1
answer
60
views
How can I continue refreshing an observable on button click when an observable error occurs in Angular?
I'm working on an Angular application where I fetch data from an API and display it using my custom state pipe and async pipe. There is a button to refresh the API call. However, if an error occurs, ...
2
votes
1
answer
46
views
Angular number pipe + Jest + Angular testing library. Whitespace is not equal to whitespace?
Can anybody help me to figure this out please ?
Im trying to test a number value in my dom. It is the result of complex calculation.
It is formatted in french locale, cause application is french.
Used ...
1
vote
1
answer
58
views
Provide CustomPipe instead of CurrencyPipe
I want to provide CustomPipe instead of CurrencyPipe. Expected to import and use default CurrencyPipe, but it will use CustomPipe instead of it. I use this provider
{
provide: CurrencyPipe,
...
2
votes
1
answer
629
views
Angular Standalone Pipe with Dependencies
In Angular 18, is it possible to have a custom standalone pipe that uses another pipe?
Here is what I am trying to do:
import { inject, Pipe, PipeTransform } from '@angular/core';
import { ...
0
votes
1
answer
34
views
Setting class with class binding through pipe
Having a problem with setting a class via custom pipe that I wrote.
I use signal Store that I map over to check if the value is matched with id in the store and if the condition is true, then if it's ...
1
vote
1
answer
144
views
TranslocoCurrencyPipe NullInjectorError
I am currently trying to upgrade the Transloco version in our project. Previously we were on Transloco 4.3.0 and Transloco-MessageFormat 4.1.0.
The goal ist to upgrade them to the newest version (7).
...
1
vote
1
answer
3k
views
No pipe found with name 'date' in angular 18
Hi I'm getting a console error when I'm using it in my code that is No pipe found with name 'date' when trying to use it here
<td>{{room.checkinTime | date}}</td>
Error with Pipe
I'm ...
8
votes
1
answer
6k
views
json pipe not found in Angular 18
In a clean project in Angular 18 the pipe "json" is not working.
import {Component} from '@angular/core';
import {bootstrapApplication} from '@angular/platform-browser';
@Component({
...
0
votes
3
answers
363
views
Angular sentence-case pipe disrupt also existing camel cases?
I have the following texts:
"please take care of your task"
"please think about Philip's idea"
I send them both through the same pipe, which displays them in sentence case:
{{ ...
2
votes
3
answers
308
views
How do I bind the result of an @for to a variable?
In Angular 16 (and earlier) it was possible to use "as" behind a for loop to declare the filtered results as a variable.
Like so:
<div *ngFor="let item of (items | pipe: Query) as ...
1
vote
2
answers
353
views
Angular 17 - Showing empty data when using pipe
I'm using Angular 17 with the following code:
database.component.html
@for(user of (users | userPipe:filters); track user.id) {
<tr id="{{ user.id }}">
<td>{{ user....
3
votes
1
answer
150
views
Argument type undefined is not assignable to parameter type string | undefined
im curios about an typescript (or maybe angular) error, that i dont fully unterstand. When using the date pipe with timezone parameter and no format:
{{ dateString | date:undefined:'+0430' }}
im ...
2
votes
1
answer
4k
views
NG8004: No pipe found with name 'uppercase'. [plugin angular-compiler]
my components name is heroes
heroes.component.ts
import { Component } from '@angular/core';
import { Hero } from '../hero';
@Component({
selector: 'app-heroes',
standalone: true,
imports: [],
...
1
vote
2
answers
576
views
Angular title case all words except few
I'm facing an issue I have an object
{
"Draft": 19,
"Process Model QA review in progress": 22,
"Process Model QA Rejected": 17,
"Process Model QA ...