I'm not sure exactly what you're asking...
On Tuesday, July 4, 2017 at 12:16:05 AM UTC-4, Kapil Soni wrote:
>
> // Adding new product key to
> existing productKey of album.
> $scope.newProductKeyArray =[];
>
> // Push only if not found in array.
> if(value.productKey != undefined) {
> // product key found adding another key..
> if(value.productKey.indexOf($scope.productKeyId) == -1) {
>
>
> //Here value.productKey.indexOf($scope.productKeyId) this line
> will be generate the error
>
> //value.productKey.indexOf is not a function
> // Adding productKeyId to add this new productKeyId.
> value.productKey.push(productKeyId);
> $scope.newProductKeyArray = value.productKey;
>
> if(albumObj != null && albumObj != undefined) {
> albumObj["shared"] = true;
> }
> $scope.newProductKeyArray.push(albumObj);
> //After selected the user move the checkedUser into the allowBUserObjects
> $(event.currentTarget).parents(".albumSection").hide("slow");
> // Calling inner function.
> updateArray();
> } else {
> console.log("Product already in album.");
> }
> }}
>
>
> //Sir tell me how to fix this error?
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.