Questions tagged as 'angular'

1
answer

Repetition structure does not work when my object is copied without reference

I need to remove an attribute from my object (indexvariance attribute), but I need it to stay in the root object. This is my algorithm that receives in the variable my object variable and then I remove the indexvariacao attribute attribute of...
asked by 20.11.2018 / 19:40
1
answer

Angular Command 6 CLI to create a component in a specific folder

Is there any way to create a component in the Angular 6 CLI specifying which folder it should be in? I searched the net and found ng g c nome-componente --module=app but this is just to specify that it will stay in app I tried to t...
asked by 18.10.2018 / 00:50
1
answer

I can not send the .json file

I'm trying to send a .json file created within Angular to a server, and gives this error in response:    "A JSONObject text must begin with '{' at 1 [character 2 line 1]", object_or_array: "object", error_info: "This error came from th...
asked by 19.12.2018 / 00:59
1
answer

Example of responsive menu with angle 5+

I took an angled project and the menu is responsive, however the programmer did not do it with angular, did not create a component, it did separate with javascript and "docked" in the project. I think it's a gambiarra. Is it possible to make a r...
asked by 06.10.2018 / 04:38
1
answer

Reuse component in another component and get the data of the child in Angular

I made a ZIP search component this way: I created the component, its HTML is: <fieldset [disabled]="isLoading"> <div class="row col-md-6"> <div class="row"> <div class="col-md-4">...
asked by 25.11.2018 / 18:14
3
answers

Font Awesome icons do not get in PrimeNG

I have the Awesome Font lib installed and configured in my project, and I have the PrimeNG lib installed as well, but the Awesome Font icons are not getting in the PrimeNG Datatable, it will be missing something in my HTML file or is it the proj...
asked by 17.08.2018 / 14:03
1
answer

Filter using masks no n2-smart-table

I'm using Angular 6 with n2-smart-table . I want to search a string with and without mask (like a cpf or cnpj). Ex: 28871154000178 and 28.871.154/0001-78 should return the same record when searching for the filter ....
asked by 14.08.2018 / 14:27
1
answer

How can I remove a value from the array by clicking the checkbox in typescript

I have a checkbox which when clicked pushes in an array of name perm_telas, however when I select an already selected check again it is not correctly removing the array value. I've tried something like: @ViewChildren('myItem') item; //Aqu...
asked by 31.07.2018 / 14:33
1
answer

Problem in production build when using CryptoJS

I have an application written in Angular 6 and there has been a need to send a hash to the client. The contractor only approved the use of crypto-js library. I did the implementation and everything works correctly in ng serve , but...
asked by 04.10.2018 / 14:41
1
answer

Problem with routerLink in angle 6

I'm having the following error: Can't bind to 'routerLink' since it isn't a known property of 'a'. (" <h6 class="text-center"> Do not have an account yet? <a [ERROR ->][routerLink]="['/signup']">...
asked by 26.09.2018 / 00:50