Sha256: 93dcfba90c062622f081d0ff9f86d9c77148eed1ee73b6a85adc54776444e277

Contents?: true

Size: 433 Bytes

Versions: 2

Compression:

Stored size: 433 Bytes

Contents

function myservices($scope){
    $scope.services=[
        { title: 'web development', price: 200},
        { title: 'web design', price: 250},
        { title: 'photography', price: 100},
        { title: 'coffee drinking', price: 10}];
    $scope.total=function(){
        var t = 0;
        angular.forEach($scope.services, function(s){
            if(s.selected)
                t+=s.price;
        });
        return t;
    };
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
crosslanguagespotter-0.0.3-java test/data/services/script.js
crosslanguagespotter-0.0.2-java test/data/services/script.js