Questions tagged as 'angular'

1
answer

ngFor with checkbox you are selecting all values

I have the following checkbox with a repeat structure: <div *ngFor="let tela of telas" class="custom-control custom-checkbox check"> <input type="checkbox" id="{{tela.nome_tela}}" [(ngModel)]="operador.permissao_telas" n...
asked by 23.07.2018 / 22:31
1
answer

Bad Request 400: When accessing API with Ionic 3

I'm getting my Bad Request 400 response to my API call in my console: Myapp.api.tsintheappfolderis:exportconstMEAT_API='http://localhost:1337'Andmymaincodeis:submit(){varlink='http://localhost:1337/user/login';vardata='?email='+JSON.stringif...
asked by 19.06.2018 / 20:06
1
answer

Can anyone help me with angular 5 integration with firebase real time?

I need to integrate the firebase database with an angled application. 5. I got the code generated by the firebase, I created a firebase config file and put it there I did the import into the module. I'm having trouble writing at the bank and get...
asked by 04.05.2018 / 21:35
2
answers

How do I log out in angle 4?

Good afternoon, I would like to know how do I log out in angle 4, as I am developing a dashboard and only need this requirement Thanks in advance. import { Component, Input, OnInit } from '@angular/core'; import { NbMenuService, NbSidebarSer...
asked by 20.04.2018 / 06:14
1
answer

Return generated id

I'm using Angular 6+ and springboot. How do I generate an id and retrieve it? ex: I have the following page: Whentheuserclickson"New" will make a post. And this id that was generated will appear in the Code field. * I thought about doing...
asked by 27.08.2018 / 20:39
1
answer

How to check if an array contains a specific value?

I have the following function: const role = tokenPayload.params.role.map(r => { return r.value; }) [0]; It returns this: author If I remove the index [0], it returns this: ["author", "admin"] Is it possible for the function t...
asked by 20.08.2018 / 20:17
1
answer

Remove stack page in Ionic

I have the following structure Home > Page 1 My Page 1 every 10 seconds performs an http request. I realized that when I move from Page 1 to Home, I continue to make requests. I would like to know how I can remove the stack as soon as...
asked by 14.08.2018 / 14:15
1
answer

How to insert data from a form made in Angular2 in a Database?

I'm starting to learn Angular 2, and I have to do a CRUD of a system on series, and I need to store data in a database, I currently know how to use MySQL using Xampp. I need to make the request using Ajax. Here is the function you want to cal...
asked by 03.07.2018 / 02:47
2
answers

Treat data collected through a JSON api

I am collecting data provided by an API in JSON. With the code below I can see that the data was collected inside Subscribe. But outside of it, inside the .TS file itself I can not manipulate this data. I tried to use the promise, but I...
asked by 17.04.2018 / 15:32
1
answer

Row of Observables

My application has a service that runs an observable every time I click a button. The problem is that if I click the button several times it executes the Observable several times at the same time. He needed this service to line up and run one at...
asked by 18.10.2017 / 16:14