fix view pattern example

[ci-skip]
Automatically rewritten for npm.