mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
22 lines
454 B
JavaScript
22 lines
454 B
JavaScript
import {Injectable, Pipe} from 'angular2/core';
|
|
|
|
/*
|
|
Generated class for the <%= jsClassName %> pipe.
|
|
|
|
See https://angular.io/docs/ts/latest/guide/pipes.html for more info on
|
|
Angular 2 Pipes.
|
|
*/
|
|
@Pipe({
|
|
name: '<%= fileName %>'
|
|
})
|
|
@Injectable()
|
|
export class <%= jsClassName %> {
|
|
/*
|
|
Takes a value and makes it lowercase.
|
|
*/
|
|
transform(value, args) {
|
|
value = value + ''; // make sure it's a string
|
|
return value.toLowerCase();
|
|
}
|
|
}
|