0
如果我有我的事情的範圍內,像這樣的變量:Angularjs刪除對象帶有空字段
$scope.myListOLD =
[
{ title: "First title", content: "First content" },
{ title: "Second title", content: "" },
{ title: "Third title", content: "" },
{ title: "Fourth title", content: "Fourth content" }
];
我怎麼可以創建取消了對特定字段中的任何空值的新範圍變量? (在這裏是內容)。
$scope.myListNEW =
[
{ title: "First title", content: "First content" },
{ title: "Fourth title", content: "Fourth content" }
];
精美的作品!謝謝! – Buster