Questions tagged as 'angular'

0
answers

Array Array of type Observable [closed]

I'm developing an app and need to iterate through an array of Observable-type arrays coming from the firebase. I have the code below but it does not work and it gives me an error. Can someone please help me? <div *ngFor="let products of cat...
asked by 14.04.2018 / 14:49
1
answer

How to create a directive in AngularJs that creates a mask and did not modify the ng-model?

I created a directive where it serves as a mask for checking account, so when I type a value, always the rightmost value in the input is the digit of my account, until then beauty is working. The problem is that I do not want to change the value...
asked by 19.04.2018 / 19:16
1
answer

Angular FormGroup

Hello, I'm new to angular and would like to know how I use more of an external validation with FormGroup. Currently my code is as follows ... constructor(fb: FormBuilder, public router: Router){ //Grupo de formulario - Validações...
asked by 05.04.2018 / 19:24
1
answer

Pass variable in * ngIf

I have a variable in my input.component.ts called validacaoExterna , which gets a string from whoever uses it .. @Input() validacaoExterna: string; In my input.component.html I have a * ngIf that uses this variable *...
asked by 06.04.2018 / 16:01
0
answers

List the value of a Subscribe in Angular 2+

I have a component that connects to another sibling component. From that, I made a service so that it is possible to make this communication. So far so good. The problem is that I can not retrieve the subscribe values that are inside a compone...
asked by 13.04.2018 / 01:03
1
answer

Does anyone know why the elements already added inherit the new colors?

I'm testing a method here, for adding tags, I want one of each color, but with the Angle ngFor, the colors are all the same with each new tag added. Here is the code: <div class="container"> <input type="text" class="form-control" [(...
asked by 12.03.2018 / 21:50
0
answers

Can I use jQuery code in a .Factory and inject the controller?

I'm developing a site using AngularJS ES6, and on this site I needed to perform a function and I was not getting it. I searched the internet for a similar function to understand how I could do it and found a function in jQuery. In trying to p...
asked by 23.02.2018 / 19:25
0
answers

Sending XML to JAVA - Angular 2

Well, I'm trying to send an XML from my view in Angular 2 to a Java backend. In the java I have a servlet that looks for the xml by the parameter: request.getParameter("xml") And in my angular service I'm doing the following:...
asked by 23.02.2018 / 19:09
0
answers

Angular and server

I must have done something wrong, because it gave the error again. I created this class: package br.com.netsoft.configuracao.auth; import java.io.IOException; import javax.servlet.FilterChain; import javax.servlet.ServletException; import...
asked by 02.04.2018 / 15:53
0
answers

Create fields with ngFor

I want to do something where I can every time I click the button to make new fields. What I've done is this: <label for="">Contatos</label> <div *ngFor="let contato of contatos" class="row"> <div class="col-12 col-sm-...
asked by 15.02.2018 / 16:34