What is the use of controller in Angularjs 2024?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at the University of Johannesburg, Lives in Johannesburg, South Africa.
A controller is defined using ng-controller directive. A controller is a JavaScript object containing attributes/properties and functions. Each controller accepts $scope as a parameter which refers to the application/module that controller is to control.
2023-05-07 05:04:14
评论(499)
Helpful(122)
Helpful
Helpful(2)

Samuel Rivera
QuesHub.com delivers expert answers and knowledge to you.
A controller is defined using ng-controller directive. A controller is a JavaScript object containing attributes/properties and functions. Each controller accepts $scope as a parameter which refers to the application/module that controller is to control.