Posts by Vitor Marcolino • 19 points
4 posts
-
-2
votes2
answers206
viewsQ: Iterate an object within another. Is it possible?
let myObject = { nome: 'Nome', idade: 20, endereco: { rua: 'Tal', numero: 5, municipio: { codigo: 1, ibge: '001' } } }; Object.keys(myObject) .forEach((key) => { console.log(key); // 'nome',…
-
0
votes1
answer46
viewsQ: How do I release my ' + ' button only when selecting an item from the list?
I have a problem in ngFor, because I want to enable the + button only when an item in the list is selected. But my widget option does not accept Event bind (click). Can you help me? <div…
-
1
votes1
answer45
viewsQ: Does anyone know why elements already added inherit the new colors?
I’m testing a method here, to add tags, I want one of each color, however, with ngFor Angular, the colors are all the same to each new tag added. Follows the code: <div class="container">…
-
0
votes1
answer53
viewsQ: Can I call a function within Validators in a reactive form?
I made a method and I’d like to use it as Validators, in a reactive form, in Angular 2. It is possible? controle(){ let data : number = this.formCep('nasc').value.split("-")[2]; let atual = new…
angularasked Vitor Marcolino 19