1.

What Is Impure Pipe?

Answer»

Angular EXECUTES an impure pipe during every component change detection cycle. An impure pipe is called often, as often as every keystroke or mouse-move.

If you want to make a pipe impure that time you will ALLOW the setting PURE FLAG to false.

@Pipe({

name: 'currency',

pure:false

})

Angular executes an impure pipe during every component change detection cycle. An impure pipe is called often, as often as every keystroke or mouse-move.

If you want to make a pipe impure that time you will allow the setting pure flag to false.

@Pipe({

name: 'currency',

pure:false

})



Discussion

No Comment Found