ionic-framework
Version:
The ionic-framework package comes with both Javascript and Sass frontend dependencies, located in the root of the package, and a Node API, located in `tooling/`.
22 lines (19 loc) • 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.
*/
({
name: '<%= fileName %>'
})
()
export class <%= jsClassName %> {
/*
Takes a value and makes it lowercase.
*/
transform(value, args) {
value = value + ''; // make sure it's a string
return value.toLowerCase();
}
}