I was reading about components and directives in angular.js but I couldn't get the exact difference between these two and also I want to know about the advantage of these two? can anyone explain it?
I hope this can be useful for you.
https://www.geeksforgeeks.org/difference-between-directive-and-component-in-angularjs/#:~:text=Component%20is%20used%20to%20break,a%20total%20component%2Dbased%20model.