[BUGFIX] Fix wrong view keyword in a component block

Close #3520

Signed-off-by: Kris Selden <kris.selden@gmail.com>
Merge pull request #4818 from krisselden/fix-view-keyword

[BUGFIX] Fix wrong view keyword in a component block