Monday, April 2, 2018

{{myArray.push(13)}}

At an Angular 4 template's markup this will return the most recent position for the array, basically a number one less than the count of the array given the zero-based numbering system. A coworker and I worked this out today as my coworker had a friend who got asked this question as a gotcha interview question.

No comments:

Post a Comment