Completely new to working with Angular and I'm encountering an issue where the first letter of my result from the Webapi model is always uppercase, even though my Angular model's first letter is lowercase.
User.ts
export interface User extends ICommon {
id: string;
firstName: string;
lastName: string;
}
User.service.ts
public getActiveUsers(): Observable<User[]> {
return this.http
.get<User[]>(baseUrl + "user/GetUserlist");
}
The console output displays:
https://i.sstatic.net/nHZsW.png
User.component.html
{{user.firstName}} => shows no result
{{user.FirstName}} => shows the correct result
User.component.ts
let result = this.user.firstName => undefined
let result = this.user.FirstName => compile time error.
I'm feeling confused about what I might be doing wrong here. Any insights?