I want to create an application where backend is driven by CodeIgniter and frontend by AnuglarJS.
As of now, I have an idea that we can use Angular JS $http service to get data from Codeigniter. But I am confused how to treat views.
For example:
My default controller is 'Login'. I created a login.php file in controllers folder and render the view of login form in index method. Now if I go with only CodeIgniter flow, I will simply place the form action to the doLogin() method of login controller and form there I will redirect user to his dashboard.
How can we achieve this in AngularJS so that when a user fill the form and hit login button, the page does not get refreshed and the dashboard appears?