Question: what is the difference between directive and component in angularjs?
Answer: component consist with the scope but unlike directives, the scope is isolated. Directives can modify DOM or data that is outside of their scope, but the component can only access data within isolated scope. The main reason to avoid adding these features to a component is to prevent additional complexity.