If I have within my scope something a variable like so:
$scope.myListOLD =
[
{ title: "First title", content: "First content" },
{ title: "Second title", content: "" },
{ title: "Third title", content: "" },
{ title: "Fourth title", content: "Fourth content" }
];
How could I create a new scope variable that removed any empty values on a specific field? (In this case content).
$scope.myListNEW =
[
{ title: "First title", content: "First content" },
{ title: "Fourth title", content: "Fourth content" }
];