Jump to content

Recommended Posts

Posted

Oi.

Eu queria que na minha aplicação em AngularJS o utilizador pudesse apagar um registo...

Então para testar em 1º lugar estou a colocar o id de um registo manualmente para ver se estou a fazer bem...

Mas quando carrego no botão delete, ele apaga todos os dados da bd e não apenas o registo daquele id...

O código que estou a tentar é este:

http://plnkr.co/edit/jLiyC64vfLECshjFQD3m

Alguém me consegue dizer o que estou a fazer mal, para ele apagar tudo e não apenas aquele registo?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.