Wednesday 18 October 2017

filter in angularjs

 $scope.EntityTypeChange = function (entityTypeId) {
                $scope.entityTypeId = entityTypeId.id;
                $scope.EntityTypeName = $filter('filter')($scope.EntityTypes, function (value) {
                    return value.id === $scope.entityTypeId;
                })[0].val;
                $scope.GetCustomFieldsByEntityTypeId($scope.entityTypeId);
            };

No comments:

Post a Comment