To bind a controller to a view, AngularJS uses the _________ directive.

  • attachController
  • bindController
  • ngBindController
  • ngController
To bind a controller to a view, AngularJS uses the ngController directive. This directive is placed in the HTML code and specifies the name of the controller to be associated with the corresponding view. By using ngController, developers establish a clear connection between the view and the controller, enabling the controller to manage the behavior and data of that specific view.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *