How do I join two scope arrays into one in angularjs in my controller so that I can display them in a single table? The join would happen on a field which is in both tables. It would be like a typical SQL join where you want data from both tables in one table. Thank you in advance.
$scope.stuff = [{desc: "stuff", id: "1234"},{desc: "things", id: "1235"}]
$scope.otherStuff = [{type: "new", id: "1234"},{type: "old", id: "1235"}]
$scope.result (how do I get this) = [{desc: "stuff", type: "new", id:"1234"},{desc: "things", type: "old", id:"1235"} ]