-2
Hello. Guys I have a function where I press 3 color buttons (yellow, blue, black) on my screen, I need that when I click these buttons on a div below appear the colors that he is clicking. So the expected behavior is that when I click on yellow appear below the yellow color, blue appear blue etc. The behavior I’m having is that when I click on the buttons it brings the click but without the color. It follows function and html.
loadSequencia(sequencia: String): void{
this.sequencia.push(sequencia);
console.log('sequencia', this.sequencia);
}
////html of buttons
////html of button response <li *ngFor="Let sequencia of sequencia"> <button (click)="loadSequencia('sequence')" style="background- color: sequence; ">
</div>
</li>
</ul>
Thanks, it worked out! :)
– Leticia Trevizan