I have an object and code below:
SeaWall: ProInfoSeawallBaseDto = new ProInfoSeawallBaseDto();
html below(SeaWallBase contain the propety 'final_Crest_Altitude')
<input type="text" name="final_Crest_Altitude" [(ngModel)]="SeaWall.final_Crest_Altitude">
when I get the value
console.log(this.SeaWall.final_Crest_Altitude);
the web console showed 'undefined'. I am really confuse about it. I used the ngModel, it should be binded. My workmate have the same issue. But, when I change the object name 'SeaWall' to 'SeaWallBase', everything's fine. Is 'SeaWall' a key name ?