feat(view): add onChange implementation to view.

Good catch. Added tests for the method.