I had a bit of confusion today when my app was behaving strangely. Turns out I was assigning a string to a number, but there was no error alerting me of that. Any idea why that might be?
id:number;
later:
this.id = ActiveRoute.params.id; //(this was a string, obviously)
//do some iteration (n=this.id) times
My iteration was only running once, but I would have expected to be alerted to the type misalignment when assigning to id.
(edited attribute originally from memory^)
anynotstring.id:number;is typed asany?