CodeIgniter Forums
Angular 4 and CodeIgniter 3 - 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: Angular 4 and CodeIgniter 3 (/showthread.php?tid=68380)



Angular 4 and CodeIgniter 3 - slipdiegoknot - 07-03-2017

Is there a way to have this two working together but not having Angular as a project and CI as another.
I need CI to start all, my app is in apache and I don't want to start Angular separately from CI. They both should be in one project. If you have a setup please let me know.

Angular generates a html file and CI loads view a php file which has html inside, how should this be working?

I use Angular 4, CI3


RE: Angular 4 and CodeIgniter 3 - rtenny - 07-07-2017

I have not used Angular 4 so please take this with a pinch of salt.

As i understand it Angular is a Javascript Frame work. You load in the required files in your <head> and just add the js code to your html sections in your view files. When PHP creates your files it creates a html which is then send to the browser and your browser will start Angular.

I dont think there is anything you need to do in CI.


RE: Angular 4 and CodeIgniter 3 - rtenny - 07-10-2017

I had a quick look at Angular and its not just a JS framework.
Better ignore my previous post and wait for a reply from somebody who knows what they taking about.


RE: Angular 4 and CodeIgniter 3 - nomy.my - 05-08-2018

I Think angular is on client side, Codeigniter Can be use on server side, handling request from angular. with some rest api library.


RE: Angular 4 and CodeIgniter 3 - albertleao - 05-08-2018

Angular doesn't care what your backend is. Just have CI spit out your required json and you'll be fine. Use CI to echo the initial page where your angular app is loaded then have angular make api calls for your data.