From db68914cd6c821e7dec8155bd33142a3a97f5453 Mon Sep 17 00:00:00 2001 From: nate-wilkins Date: Thu, 25 Dec 2014 18:46:04 -0500 Subject: [PATCH] fix(uiView): add `$element` to locals for view controller --- src/viewDirective.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/viewDirective.js b/src/viewDirective.js index d3cf100a2..b70220779 100644 --- a/src/viewDirective.js +++ b/src/viewDirective.js @@ -274,6 +274,7 @@ function $ViewDirectiveFill ( $compile, $controller, $state, $interpolate if (locals.$$controller) { locals.$scope = scope; + locals.$element = $element; var controller = $controller(locals.$$controller, locals); if (locals.$$controllerAs) { scope[locals.$$controllerAs] = controller;