Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70924

Add costume pipe don't work

$
0
0

@akkari97 wrote:

hello , i created a costume pipe with this code
import { Pipe, PipeTransform } from ‘@angular/core’;

/**

  • Generated class for the CapitalizeFirstPipe pipe.
  • See https://angular.io/api/core/Pipe for more info on Angular Pipes.
    /
    @Pipe({
    name: ‘capitalizeFirst’,
    })
    export class CapitalizeFirstPipe implements PipeTransform {
    /
    *
    • Takes a value and makes it lowercase.
      */
      transform(value: string, …args) {
      return value.toLowerCase();
      }
      }
      and i called this pipe with this code
      {{ bouquet.nom | capitalizeFirst }}
      but no thing changed , can you tell me what’s rong ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70924

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>