fix(uiView): add `$element` to locals for view controller
Merge pull request #1659 from Nate-Wilkins/master

fix(uiView): add `$element` to locals for view controller