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