Question: what is difference between controller and directive angularjs?
Answer: The main point to take away from that is that directives allow you to attach certain logic/behavior to a certain element, where as controllers usually only allow you to attach logic to pages/views.