I'm new for AngularJs. I have to calculate age from give year. How I can in PHP?
My script and view files are following,
My .Js:
function mycontroller($scope){
    $scope.sales = [
        {
            name: 'steptoinstall',
            year: 1986,
        }
    ];  }
My view.php:
<li ng-repeat="sale in sales" >
    {{sale.name}} {{ **AGE** }}
</li>
And,
If I have full date like '10-01-1989', then how can I?