Routing CodeIgniter with Angularjs

0 votes

i am using Codeigniter Framework and Angularjs. In script.js file templateUrl is not loading views in application's sub-folder for Single page application. can anyone help me about Routing using codeigniter ? thanks

asked Jan 24 by Devman (590 points)

1 Answer

0 votes

By default you can not access to application files. You need to print all views and assign a route.

$route["views/(\w+)"] = "angular/view/$1;

Use angular app router.

answered Jan 24 by domingez (950 points)
Welcome to Ask.CodeIgniter, where you can ask questions and receive answers from other members of the community.
 | Mediacode Theme
Powered by Question2Answer