The problem is with using an array of primitive values (words) in ngFor.
You can change words to an array of objects like
words = [{value: 'word1'}, {value: 'word2'}, {value: 'word3'}];
and use it like
This might also be solvable using trackBy but I'm not sure.