fix(Pipes): mark date & slice as non-pure
This commit is contained in:
parent
7ba426c3e6
commit
2f1f83a186
|
@ -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 */
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue