enviando post angular 8
if (this.recebe_nome)
{
this.servidor.envia_post({
nome: this.recebe_nome,
emp_id: (this.permissions.tipo_user < 2)?this.emp_id.id:this.permissions.empresa
}, '/postos/create').subscribe(data =>
{
this.toastr.info("Cadastrado com sucesso!");
this.router.navigate(['../list'], {relativeTo: this.activatedRoute});
}, err =>
{
this.toastr.warning("Erro: " + err.message);
});
}
Also in JavaScript:
- package json scripts multiple commands
- check if string contains substring javascript
- remove attribute javascript
- react how to create range
- document jquery
- string to JSONobject android
- how to make a deck of cards in javascript
- jquery duplicate last table row
- detect a click outside an element javascript
- react native loading
- react if statement
- online javascript compiler
- mongodb find all that dont have property
- smooth scrolll to id js
- javascript date get day of week abbreviation
- html shortcuts in jsx
- javascript switch case regex
- defer parsing of javascript avada
- .empty() in jquery
- json enconde
- angular how to get previous state
- javascript replace p tags with new line
- setinterval nodejs
- js maths