title: Angular js : How to load server response in ng-view
body: <p>I am developing and website in codeigniter and angualrJs. </p>
  
  <p>I an trying to load view in <strong>ui-view</strong> from controller- action of codeigniter using <code>$state</code> route method. But I am not getting any response. Is need to use http get method for this.</p>
  
  <p>Below is my code.
  app.js</p>
  
  <pre><code> (function () {
      "use strict";
      var app = angular.module("autoQuote",["common.services","ui.router"]);
  
      app.config(["$stateProvider","$urlRouterProvider"], function($stateProvider,$urlRouterProvider){
          $urlRouterProvider.otherwise("/");
  
          $stateProvider
              .state("step1", {
                url : "/",
                templateURL : "http://dev.angauto.domain.com/rc1/renderstep/step1"
              })
  
              .state("step2", {
                url : "/",
                templateURL : "http://dev.angauto.domain.com/rc1/renderstep/step2"
              })
      }
      );
  }());
  </code></pre>
  
  <p>common.services.js</p>
  
  <pre><code>(function () {
      "use strict";
  
      angular
          .module("common.services",
                  ["ngResource"])
  }());
  </code></pre>
  
  <p>autoQuoteCtrl.js</p>
  
  <pre><code>(function(){
       "use strict";
       angular
       .model("autoQuote")
       .controller("prepareDTO","prepareDTO");
  
       function prepareDTO()
       {
           var vm = this;
           vm.postAutoQuoteObj = [];
       }
  
   });
  </code></pre>
  
  <p>html</p>
  
  <pre><code>    &lt;script src="&lt;?php echo $assetName; ?&gt;/js/jquery-3.0.0.min.js"&gt;&lt;/script&gt;
      &lt;script src="&lt;?php echo $assetName; ?&gt;/js/angular.js"&gt;&lt;/script&gt;
      &lt;script src="&lt;?php echo $assetName; ?&gt;/js/angular-resource.js"&gt;&lt;/script&gt;
      &lt;script src="&lt;?php echo $assetName; ?&gt;/js/angular-mocks.js"&gt;&lt;/script&gt;
      &lt;script src="&lt;?php echo $assetName; ?&gt;/js/angular-ui-router.js"&gt;&lt;/script&gt;
      &lt;script src="&lt;?php echo $assetName; ?&gt;/js/bootstrap.js"&gt;&lt;/script&gt;
  
      &lt;!-- Application Script --&gt;
      &lt;script src="&lt;?php echo $assetName; ?&gt;/app/app.js"&gt;&lt;/script&gt;
  
      &lt;!-- services --&gt;
      &lt;script src="common/services/common.services.js"&gt;&lt;/script&gt;
  
      &lt;!-- Controllers --&gt;
      &lt;script src="&lt;?php echo $assetName; ?&gt;/app/ctrl/autoQuoteCtrl.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body ng-app="autoQuote"&gt;
  &lt;div ui-view&gt;&lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Please suggest me if I am missing something here.</p>