Infosys Interview Question

Explain directives and their functionalities in angularJS?

Interview Answer

Anonymous

Nov 3, 2022

AngularJS directives are extended HTML attributes with the prefix ng- . The ng-app directive initializes an AngularJS application. The ng-init directive initializes application data. The ng-model directive binds the value of HTML controls (input, select, textarea) to application data.