templateUrl angularjs routerProvider for Codeigniter
<p>I'm new in angularjs. How to pass my templateUrl routerProvider angularjs in my Codeigniter application.</p>

<p>For example my codeigniter controller is:</p>

<pre><code>class Tester extends CI_Controller {
  function __contruct();
  {
     parent::__contruct();
  }

  function index()
  {
     $this-&gt;load-&gt;model('m_tester');
     $data['title'] = 'Home';
     $this-&gt;load-&gt;view('tester/template',$data);
  }
} 
</code></pre>

<p>and here is my controller to create my json data, still in one controller file:</p>

<pre><code>function studentlist()
{
  $this-&gt;load-&gt;model(array('m_tester'));
  $data = $this-&gt;m_tester-&gt;studentlist();
  $this-&gt;output-&gt;set_content_type('application/json')-&gt;set_output(json_encode($data));
}
</code></pre>

<p>the json output is work well when I access my page in  because my homepage for tester page is to display studentlist() controller without routerProvider.</p>

<p>and here is my view folder and file in codeigniter:</p>

<pre><code>cbt
-application
--views
---tester
</code></pre>

<p>I have menu file in views tester folder, it's menu.php:</p>

<pre><code>switch($title)
{
  case 'Home';
  include 'home.php';
  break;
}
</code></pre>

<p>so my question is how to pass my templateUrl in my angularjs routerProvider config for my codeigniter?</p>

<pre><code>var myApp = angular.module('myApp', ['ngRoute']);

myApp.config(function($routerProvider, $locationProvider){
  $routerProvider
    .when('/', {
       templateUrl: '**&lt;--I'M STILL CONFUSED HERE--&gt;**',
       controller: 'studentController'
    });
    $locationProvider.html5Mode(true);
});
</code></pre>