Files
andrewmcgivery f61a57b9ee Typescript generators
* @Inject to parameters()

Changed injection of Http to use parameters() instead of @Inject

* import map operator

Added import of map operator from rxjs

* Typescript Generator Support

Support for typescript generators

* Tabs -> spaces

* Changes From Tim's Feedback
2016-04-04 09:30:55 -05:00

22 lines
469 B
TypeScript

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: string, args: any[]) {
value = value + ''; // make sure it's a string
return value.toLowerCase();
}
}