What is the purpose of the ng-init directive?

Instruction: Explain when and why the ng-init directive should be used in AngularJS applications.

Context: This question assesses the candidate's understanding of AngularJS directives, particularly ng-init, and its role in initializing application data.

Upgrade to view answer

Related Questions