juniorAngularJS

What is AngularJS Controller?

Updated Apr 28, 2026

Short answer

Controller defines business logic for a view.

Deep explanation

Controllers initialize scope and define functions. They should be thin and delegate logic to services.

Real-world example

Handling user input in forms.

Common mistakes

  • Putting heavy logic in controllers.

Follow-up questions

  • Why thin controllers?
  • Alternative pattern?

More AngularJS interview questions

View all →