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'
|
* {{ dateObj | date:'mmss' }} // output is '43:11'
|
||||||
*/
|
*/
|
||||||
@CONST()
|
@CONST()
|
||||||
@Pipe({name: 'date'})
|
@Pipe({name: 'date', pure: false})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class DatePipe implements PipeTransform {
|
export class DatePipe implements PipeTransform {
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|
|
@ -67,7 +67,7 @@ import {Pipe} from '../metadata';
|
||||||
* {{ 'abcdefghij' | slice: 100 }} // output is ''
|
* {{ 'abcdefghij' | slice: 100 }} // output is ''
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Pipe({name: 'slice'})
|
@Pipe({name: 'slice', pure: false})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class SlicePipe implements PipeTransform {
|
export class SlicePipe implements PipeTransform {
|
||||||
transform(value: any, args: any[] = null): any {
|
transform(value: any, args: any[] = null): any {
|
||||||
|
|
Loading…
Reference in New Issue