title: TypeError: Cannot read property 'concat' of undefined
body: <p>My problem is that when i run my project it gives me an error that says: TypeError: Cannot read property 'concat' of undefined. it does not display please help.</p>
  
  <p><strong>app.js</strong></p>
  
  <pre><code>    var Call24 = angular.module("Call24", ["ngResource", "ngRoute"]).
  config(function($routeProvider) {
      $routeProvider.
          when('/', { controller: ListCtrl, templateUrl: 'CycleModal.html' }).
          when('/edit/:editId', { controller: EditCtrl, templateUrl: 'details.html' }).
  
          otherwise({ redirectTo: '/' });
  
      Call24.factory('cyclesFactory', function ($resource) {
  return $resource('/api/Cycles/:id', { id3: '@id3' }, { update: 'PUT' });
  });
  
   var ListCtrl = function ($scope, $location, data,$http) {
  
  $scope.selectTest = null;
  $scope.testTest = [];
   $scope.cycle = [];
  
  $http({
      method: 'GET',
      url: '/api/Cycles/',
      data: { CycleID: 1 }
  }).success(function (result) {
      $scope.testTest = result;
  });
  
  $scope.search = function() {
      data.query({
          offset: $scope.offset,
          limit: $scope.limit
          },
          function(something) {
              $scope.cycle = $scope.cycle.concat(something);
          });
  };
     $scope.search();
  
  $scope.show_more = function() {
      $scope.offset += $scope.limit;
      $scope.search();
  };
  
   $scope.reset = function () {
     $scope.limit = 4;
     $scope.offset = 0;
     $scope.cycle = [];
     $scope.search();
   }
   };
  </code></pre>
  
  <p><strong>html</strong>
                    
                  
                   
                  
                  
                      
                          
                              <h2>Weeks in Cycle</h2>
                          </p>
  
  <pre><code>                    &lt;div class="col-sm-3"&gt;
                          &lt;div class="form-group"&gt;
                              &lt;div class="input-group input-group-addon"&gt;
                                  &lt;label&gt;Cycle number&lt;/label&gt;
                                  &lt;input ng-model="query" class="form-control" placeholder="search         rep"&gt;
                                  &lt;!--&lt;div class="input-group-btn"&gt;
                                      &lt;button ng-click="reset()" class="btn btn-default"    type="submit"&gt;&lt;i class="glyphicon glyphicon-search"&gt;&lt;/i&gt;&lt;/button&gt;
                                  &lt;/div&gt;--&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
  
                      &lt;div class="col-sm-1"&gt;
                          &lt;div class="form-group"&gt;
                              &lt;div class="input-group input-group-addon"&gt;
                                  &lt;!--&lt;label&gt;Rep&lt;/label&gt;
                                  &lt;input ng-model="part" class="form-control" placeholder="search rep"&gt;--&gt;
                                  &lt;div class="input-group-btn"&gt;
                                      &lt;button ng-click="reset()" class="btn btn-default" type="submit"&gt;&lt;i class="glyphicon glyphicon-search"&gt;&lt;/i&gt;&lt;/button&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  
    &lt;table class="table table-striped table-condensed table-bordered"&gt;
      &lt;thead&gt;
      &lt;th&gt;Cycle Id&lt;/th&gt;
      &lt;th&gt;Weeks In Cycle&lt;/th&gt;
      &lt;th&gt;Cycle Number&lt;/th&gt;
      &lt;th&gt;Start Date&lt;/th&gt;
      &lt;th&gt;End Date&lt;/th&gt;
  
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr ng-repeat="liss in cycle"&gt;
              &lt;td&gt;{{liss.CycleID}}&lt;/td&gt;
              &lt;td&gt;{{liss.WeeksInCycle}}&lt;/td&gt;
              &lt;td&gt;{{liss.Cycle}}&lt;/td&gt;
              &lt;td&gt;{{liss.StartDate}}&lt;/td&gt;
              &lt;td&gt;{{liss.EndDate}}&lt;/td&gt;
  
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;div class="form-actions"&gt;
  
      &lt;button class="btn btn-primary" ng-click="updateSurvey()"&gt;
          Ok
      &lt;/button&gt;
      &lt;button class="btn btn-danger"&gt;
          &lt;a href="#/index.html" style="color: white; text-decoration: none"&gt;Cancel&lt;/a&gt;
      &lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to display the list from a table but it keeps giving the error i have shown above.</p>