Jul 28, 2017 · 1 min read
I wouldn’t say trackyBy is only for performance optimizations; there are cases when it’s also necessary to use a custom trackBy, similar to how you’ve demonstrated this. For example, you can check this out: https://stackoverflow.com/questions/42322968/angular2-dynamic-input-field-lose-focus-when-input-changes/trackback/
