fix(Pipes): mark date & slice as non-pure

This commit is contained in:
Victor Berchet 2015-10-27 12:43:00 -07:00
parent 7ba426c3e6
commit 2f1f83a186
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ var defaultLocale: string = 'en-US';
* {{ dateObj | date:'mmss' }} // output is '43:11'
*/
@CONST()
@Pipe({name: 'date'})
@Pipe({name: 'date', pure: false})
@Injectable()
export class DatePipe implements PipeTransform {
/** @internal */

View File

@ -67,7 +67,7 @@ import {Pipe} from '../metadata';
* {{ 'abcdefghij' | slice: 100 }} // output is ''
*/
@Pipe({name: 'slice'})
@Pipe({name: 'slice', pure: false})
@Injectable()
export class SlicePipe implements PipeTransform {
transform(value: any, args: any[] = null): any {