Pipe - If you are from angular 1.x background then Pipe was known as filter but in angular 2.x, pipe introduced and its used to transform the result into other format. Directive - If you want to change the DOM behavior then we can use directive.