AngularJS application mainly relies on controllers to control the flow of data in the application. A controller is defined using ng-controller directive. A controller is a JavaScript object that contains attributes/properties, and functions.
Learn more on W3schools:
https://www.w3schools.com/angular/ang...
Also view the whole Tutorial on my Playlist:
https://www.youtube.com/playlist?list...