Questions tagged as 'angular'

0
answers

Access value inside component tag

In my component I'm trying to get the value inside the tag of this same component to display it in the html of it, however, this component is the main component of my application, What I'm wanting is like this: <teste>Testando... 1... 2....
asked by 12.03.2018 / 19:39
1
answer

How to count the columns of a td showing the tatal in the end

I'm making a list of calls and need to count how many attendance absences and justification each student has, but I can not. Someone could give a light. I'm lost in this part. <!-- PRECISO SOMAR AS PRESENÇAS --> <td style="...
asked by 12.03.2018 / 21:19
1
answer

Set localStorage in different domains

I have three applications: 1. Login (running on port 8080) with very simple jQuery 2. API (running on port 4000) with Nodejs 3. Web (which runs on port 4200) with Angular When I log in and click "Log In", it will call the API,...
asked by 13.03.2018 / 11:08
0
answers

Return only one object at a time from http get JSON

As I do to instead of the array of all questions, I came up one question at a time in my form: Given my service: import { Injectable } from '@angular/core'; import { Pergunta } from './perguntas/pergunta.model' import { PerguntasComponent } fr...
asked by 13.03.2018 / 13:07
1
answer

How do I release my '+' button, only when I select an item from the list?

I have a problem with ngFor because I want to enable the + button only when an item in the list is selected. But my option element does not accept event bind (click) . Can you help me? <div class="container"> &l...
asked by 15.03.2018 / 14:41
0
answers

Buttons hang when redirecting page

When you receive a push notification that contains a data with the name of a page to be redirected. When you click on the notification this.push.on ('notification') method is called (line 217), the redirect is done successfully, but the page see...
asked by 21.03.2018 / 19:55
0
answers

How to sort the Angular table by Date order?

Notice the table Isthereanywaytosortthetablesoit'salwaysinthedateorder?ThisismyHTMLcode;<p-dataTable[value]="noticias" [paginator]="true" emptyMessage="Nenhum lançamento encontrado" [responsive]="true" [rows]="filtro.itensPorPagina...
asked by 08.03.2018 / 19:59
0
answers

Angular4 ExpressionChangedAfterItHasBeenCheckedError using recursive method

I'm trying to develop a chat that sends several messages, and when an interaction is needed, that they display buttons or a textbox. This chat displays typed messages ... But I have a problem with the cycle to send messages in a row ... I...
asked by 08.03.2018 / 20:09
0
answers

How to make a picklist in angular 2

Is there a way to make a picklist without using a UI library? Similar to this one from PrimeNG. link     
asked by 06.03.2018 / 17:00
0
answers

angular error 4 HPE_INVALID_CONSTANT

I'm trying to download via api rest, my application works fine with api, but when I try to request files, PDF for example it returns the following error: [HPM] Error occurred while trying to proxy request /api/v1/invoices/5aa030e1e1bfd700105e...
asked by 13.03.2018 / 15:55