feat(view): add onChange implementation to view.

`${int}` -> `${index}` looks like you are missing a test.