ng-controller
Tutorial Angular ng-controller replaced by Angular components
In Angular, there is no ng-controller directive. The concept of controllers was used in AngularJS, the predecessor of Angular. In the Angular, ng-controllers have been replaced by components. In Angular, components are the building blocks of your application. They encapsulate the view (HTML), logic, and data associated with a particular part of your application’s user […]
2 mins read