jdx / mean-sample

Sample project for Write Modern Web Apps with the MEAN Stack by Jeff Dickey
https://mean-sample.herokuapp.com
166 stars 90 forks source link

POST never completes when addPost() is clicked chapter 5 #26

Closed Alayode closed 9 years ago

Alayode commented 9 years ago

I am still trying to resolve this on my own it is still a work in progress I made another video with a step by step approach getting the app to work. So far the app is fine until chapter 5 after I add the new code for $http and creating a posts.html in the new layout directory. If I find a solution before the end of the day I will update this issue.

Link to screen capture can be found via dropbox https://www.dropbox.com/s/uvew2w0ggapb4at/issue2-POST-never-completes.mov?dl=0

Alayode

Alayode commented 9 years ago

As per an issue added to mean-sample posts now gets added to the database properly. Apparently the mongodb url for localhost needs to be stated explicitly using 127.0.0.1/ works perfectly also added some extra code to prevent conflicts with other local databases

https://www.dropbox.com/s/ks1lh2memmlvgl4/issue2-POST-never-completes%28resolved%29.mov?dl=0