Difference between directive and pipe in angular?



Difference between directive and pipe in angular?..

Answer / Pankaj Dipankal

Directives are used to modify the behavior of existing HTML elements, whereas Pipes are used to format data within expressions. Directives can be used for many things such as creating custom widgets, managing component lifecycle, and handling events. Pipes are mainly used for filtering, sorting, and transforming data.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

Is angular 7 is stable?

1 Answers  


How can we share the data between controllers in angularjs?

1 Answers  


Explain ng-controller directive ?

1 Answers  


What is the meaning of material design?

1 Answers  


what is the difference between one-way binding and two-way binding in angularjs?

1 Answers  


Compare the features of AngularJS and jQuery?

1 Answers   CTS, SLK Software,


What is change detection strategy in angular?

1 Answers  


What are decorators?

1 Answers  


Explain ngfor and ngif?

1 Answers  


What are the types of linking function?

1 Answers  


What is the difference between angular 1(angularjs) and angular?

1 Answers  


How to initialize a select box with options on page load in angular js?

1 Answers  


Categories