AngularJS Interface for our API - The Full Stack: Part 10

preview_player
Показать описание
How the build a website: The Full Stack!
Learn how to build a website including coding the server, database, and client-side!

Source Code:

These tutorials are for educational purposes only. Code demonstrated in these tutorials should not be used in production environments.
Рекомендации по теме
Комментарии
Автор

Brent, shouldn't "query" be in the function? I have seen other factories with $resource listing all the CRUD type verbs, such as delete, get, put, etc.I got "
Api.query is not a function". I used your code for the factory exactly as seen on Cloud9.

victoriamielke
Автор

When did you show the content of "js/services/Api.js"??? I think cannot go further because I can't figure out wht is inside this file :(

TheAnnikan
Автор

Hi Brent, would you ever make another API call to update your view instead of splicing out the deleted customer? This is an issue I have at times as a newbie to full stack development and development in general. Thanks again.

jared
Автор

Hi Brent, thank you for your great tutorials. I have a question though, I did exactly like you do but the query method for ngResource couldn't fetch data from mongodb for some reason, so when refreshes the right column never shows the data, but the data is there in mongo database when I look up the mongo shell, and the save methods works well. If you have any ideas why that happened it will be greate help. Thank you.

mengjieyu
visit shbcf.ru