Questions tagged as 'angular'

1
answer

Convert Json date (2018-09-20 15:58:38) to (20/09/2018 15:58:38)

While developing a non-angular app, I get a json with values and date. I need to display in the pay-list.html the date in the format dd / mm / yyyy. How can I do it? Paid.ts import { Component, Input, Output, EventEmitter } from '@angular...
asked by 28.09.2018 / 15:44
1
answer

Pick button id click on Angular

I have several buttons with the same function and I try to get the last id clicked, but always only a single id comes. HTML: <div class="container"> <div class="row"> <div class="col-sm"> <button type="button" c...
asked by 27.12.2018 / 17:00
1
answer

Angular: error in model with object listing

I have these 2 templates, and the book has a list of language objects. Model book import { Language} from "./language"; export class Book { id: number; name: string; language: Array<Language>; } Model language export class L...
asked by 27.12.2018 / 18:09
1
answer

Group objects by a given key-switch

I have three objects: 0{ conta: "teste", data: "01/01/2018" }, 1{ conta: "teste", data: "01/03/2018" } 2{ conta: "teste2", data: "02/02/2019" } I need to group the objects that have the account with the same name, resulting in:...
asked by 10.08.2018 / 02:26
2
answers

Angular 404 (Not Found)

I finished my app and circled the command ng build --prod to generate the production version, then rolled http-server into the directory created by the previous command and the server worked normally, however when I put the generat...
asked by 09.08.2018 / 20:06
1
answer

TypeScript + Angular: Property is missing in type [2322]

I'm having a problem with a user Mock that I'm doing on TS, it's my first site in life, and I'm kind of lost with some errors. I end up wasting hours trying to solve simple bugs. Thisistheerror,butIdonotknowwhatiswrongbecauseitlooksliketheco...
asked by 08.12.2018 / 06:51
1
answer

Hide information from an ionic / angular collapse

I have a collapse that works fine, however I need to hide / show the trigger according to the index of that product. What I currently have: Html: <p data-toggle="collapse" attr.data-target="#{{pergunta.id_pergunta}}" (click)="hideInform...
asked by 02.08.2018 / 15:12
1
answer

Two on-change in a select

Good morning, I have the following html code: <select class="form-control" formControlName="tipoped" on-change="PesquisaPrazo('prazo', this.digitacaoForm)" on-change="PegarCfop(this.digitacaoForm)" id="q3Id"> <option sel...
asked by 21.08.2018 / 15:22
1
answer

When I give a post in the form I get this error: TypeError: _co.postCreateTypeFields is not a function

This is my html: <div class="container"> <form [formGroup]="form" (ngSubmit)="postCreateTypeFields()" style="width:400px; margin: 0 auto;"> <h1>Types Fields</h1> <div class="required-field-block">...
asked by 16.07.2018 / 22:32
1
answer

Edit table in Angular 6

I have had some problems, because I am not familiar with Angular 6. I have this table: <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <table class="table table-striped table...
asked by 17.07.2018 / 19:28