JavaScript Array of Inputs are passing as null in Angularjs

I've a form in which i'm displaying values from my DB through WebApi. One of the control will be having array of values. i've a scenario where user can edit and save it(PUT function).

Controller :

$scope.Put= function () {
       $scope.item1 = [];
        $scope.item1 = $scope.Cast.split(',');
        var Movie1 = {
            _movieId: $scope.MovID,
            _title: $scope.Movtitle,
            _releaseDate: $scope.Movdate,
            _rating: $scope.Movrate,
            _cast: $scope.item1
        };
        var Result-= MyService.Update($scope.MovID, Movie1);
        Result.then(function (pl) {
            $scope.Message = "Updated Successfuly";
        }

HTML :

<input type="text" ng-model="MovID" class="spacebox" size="30" /> <br />
<input type="text" ng-model="Movtitle" class="spacebox" size="30" />
<input type="text" ng-model="Cast" class="spacebox" size="30" />
<input type="button" ng-value="Edit" ng-click="enable()" style="margin-left: 250px; border-radius: 5px;" />

Cast input which is an array of string works perfect if user edit it and SAVE but when i try to edit some other fields like Id, Title and proceed to save without modifying Casti'm getting error like
$scope.Cast.split is not a function. Why and how it could be resolved.

Answer:1

I found the following code in Magento 2 HTML: <div id="cart-totals" class="cart-totals" data-bind="scope:'block-totals'"> Magento 2 uses Knockout on frontend but I cannot found in Knockout ...

I found the following code in Magento 2 HTML: <div id="cart-totals" class="cart-totals" data-bind="scope:'block-totals'"> Magento 2 uses Knockout on frontend but I cannot found in Knockout ...

I have the following Vue HTML. I know this can be done with other modules but I prefer not to use unless it is needed. I have a select in a form the client fills out that has a select for the opening ...

I have the following Vue HTML. I know this can be done with other modules but I prefer not to use unless it is needed. I have a select in a form the client fills out that has a select for the opening ...

I would like to get a knob animated right after my ajax call is done. I get a number, which the knob should progress to without a refresh. So what i want is: Ajax request is succesfull -> sends number ...

I would like to get a knob animated right after my ajax call is done. I get a number, which the knob should progress to without a refresh. So what i want is: Ajax request is succesfull -> sends number ...

I am trying to join an array of dates and values to an array of dates, without filtering out the extra dates. The LinqJS reference here is pretty confusing on how I would actually go about using the ...

I am trying to join an array of dates and values to an array of dates, without filtering out the extra dates. The LinqJS reference here is pretty confusing on how I would actually go about using the ...

  1. linq join syntax lambda
  2. linq join syntax c#
  3. linq join syntax multiple conditions
  4. linq join syntax method
  5. linq join syntax chain
  6. linq join query syntax
  7. linq join method syntax c#
  8. linq left join syntax
  9. linq join fluent syntax
  10. linq join function syntax
  11. linq join lambda syntax c#
  12. linq join expression syntax
  13. linq join method syntax example
  14. linq outer join syntax
  15. linq group join syntax
  16. linq join sql syntax
  17. linq inner join syntax
  18. linq join query syntax multiple conditions
  19. linq left join syntax c#
  20. linq join query syntax c#