Data selection is required either to display information on the screen or use it for some data manipulation.
If you want to get records from the MySQL database using AngularJS in CodeIgniter then you need to create a method in the controller for handling the requests and return a response.