top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How do you exchange data among different modules of your Angular JS application?

+1 vote
253 views
How do you exchange data among different modules of your Angular JS application?
posted Aug 11, 2017 by Jdk

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+1 vote

I have a group of array in $scope.firstorder. For example:

enter image description here

Based on some condition like array contains an element Quantity. If Qunatity is zero i need to remove this array from the list of arrays.

How can I do that?

 for (index in $scope.firstorder)
    {
        var quantity = $scope.firstorder[index][0].Quantity;
        if (quantity == 0)
        {
            Remove the array element from $scope.firstOrder;
        } 


    }
...