my problem is that the ng-repeat is not updating automatically the data. When I press add pin in my code, the element is added correctly to the database. If I reload the page th
in posted code you've got typo error
app.addPin = function (scope) { $http.post("/api/pin", {"title":"new", "image":"http://placekitten.com/200/200/?image=" + app.pins.length}) .success(function(data) { // add.pins.push(data); <--- app not add app.pins.push(data) }) }