CodeIgniter Forums
CI + Angular 2-5 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: CI + Angular 2-5 (/showthread.php?tid=70492)



CI + Angular 2-5 - neuron - 04-16-2018

Hi, I have project which has 3 user types, each have its own panel.
This question needs some knowledge about Angular also. 
I am asking it here to get from CI developers that faced same problems as me
Project structure is as follows:


Applicaton
    Controllers/
        admin/
        user_type2/
        //general user controllers
    Models/
        admin/
        user_type2/
        //general user models



So far there was not any problem. But we decided to build a mobile app for general users and redesign general users front end.
To avoid extra work I want to build front end in Angular so I can use builded API both for mobile app and for website. 
I want touch admin and user_type2 panels.

Now my problems are:
1. Angular handle routing
2. Angular application gives my some js files and index.html file, that I should place under public_html/. and if I do place index.html to in that folder CI's index.php won't run I guess.