Above is template i am note able to set note.color=color.color and update note how can we do
Below is html code how note is unable to update as color change:::
<div class="card card-1" *ngFor="let note of notes" style="background:note.color">
    <div style=" background:note.color;margin10px ">
        <img [src]="pinImg" alt='Pin' (click)="pinUnpin(note,true)" />
        <mat-form-field>
            <input contenteditable="true" matInput [(ngModel)]="note.title">
        </mat-form-field>
        <mat-form-field>
            <input contenteditable="true" matInput [(ngModel)]="note.body">
        </mat-form-field>
        <br>
        <div>
            <img [src]="archiveImg" alt='Archive' (click)="archiveUnarchive(note,true)" />
            <img style="width: 15px" [src]="trashImg" alt='Archive' (click)="trashUntrash(note,true)" />
            <ng2-dropdown>
                <ng2-dropdown-button>
                    <img [src]="colorPalet" alt='color palete' />
                </ng2-dropdown-button>
                <ng2-dropdown-menu>
                    <ng2-menu-item *ngFor="let color of colors">
                        <a (click)="updateNote(note)">
                            <img src="{{color.path}}" alt="{{color.color}}" (click)="note.color=color.color ; updateNote(note)" />
                            <!-- click="note.color=color.color" -->
                        </a>
                    </ng2-menu-item>
                </ng2-dropdown-menu>
            </ng2-dropdown>
            <button mat-button class="donebtn" style="width:100px" (click)="updateNote(note)">DONE</button>
        </div>
    </div>
</div>
above is html code how note is unable to update as color change:::

 
     
    