Questions tagged as 'angular'

1
answer

Angular with JSON + TypeScript

I should read a JSON and print the results within an HTML component dynamically with angular. The site would be a kind of chat where I have dynamic DATABIDING tags, within <ul class="list-group row"> I should list each "message"...
asked by 27.09.2018 / 01:52
1
answer

Problems updating a field based on the selection of another field

I do not have much Angular experience and I have a problem that seems simple. I have a master detail crud, and at item launch I have a dropdow of primeng products and after the selection I need it to update the item.preco field bas...
asked by 23.08.2018 / 16:35
1
answer

Masks - angular 2

I need to implement masks of the CNPJ or CPF in a field, that is, if it is more than 14 characters, change the mask to CNPJ. Same idea for phone, that is, cellular and fixed. CNPJ, CPF, Phone, Cellular, single I've seen in npm. What do...
asked by 09.05.2018 / 03:19
1
answer

Angular function 2 similar to Toggle Jquery

I need to do something similar to jQuery's toggle on a FAQ page. If the user clicks the question then display the answer below, if I click hide again .. however, we are using angle 2 and I saw that there are several classes / functions that dea...
asked by 20.06.2017 / 19:44
1
answer

Hide Buttons

I wanted a help with angular, I use an ngFor to generate the "-" and "+" buttons which are the buttons that give the user a choice. It was time to choose the options such as the taste of the pizza wanted that when it clicked on some flavor that...
asked by 28.07.2018 / 19:18
1
answer

When recording I get a bad request using angle 6

When I try to write to the database, I get a (400) bad request error, when I enter postman two fields of an object type returns an empty array ([ ). I'm sure that sending the data is wrong, but I'm not getting it right. The method is OnPostC...
asked by 24.07.2018 / 21:15
2
answers

Change the name of the javascript objects

I have the following object: { "Search Engines": [ { "conta": "Search Engines", "hits": 5, "bytes": 50189 }, { "conta": "Search Engines", "hits": 1,...
asked by 10.08.2018 / 14:58
2
answers

Study angular 1 or 2 [closed]

I'm pretty old, the first language I learned was in Action Script 1 (this in the early 2000s). Today I need to recycle myself and I want to start dropping Jquery and go to Angular, mainly to develop applications with IONIC 2, because my studio h...
asked by 20.07.2016 / 16:04
1
answer

I can not popular my mat-table

This is my html with mat-table <div> <table mat-table [dataSource] = "dataSource" class="mat-elevation-z8"> <ng-container matColumnDef="codigo"> <th mat-header-cell *matHeaderCellDef> Codigo </th>...
asked by 06.07.2018 / 17:59
2
answers

How to use a dynamic url in angular projects 6

Now I need to send to homologate my project, created in Angular 6. I have a file called app.constants and inside a class called Configuration. In this class "chumbei" the API url for my tests, type: link . Well, now I need to stop. The colleagu...
asked by 03.08.2018 / 21:48