Skip to content

Commit db68914

Browse files
committed
fix(uiView): add $element to locals for view controller
1 parent 699b9fd commit db68914

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/viewDirective.js

+1
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ function $ViewDirectiveFill ( $compile, $controller, $state, $interpolate
274274

275275
if (locals.$$controller) {
276276
locals.$scope = scope;
277+
locals.$element = $element;
277278
var controller = $controller(locals.$$controller, locals);
278279
if (locals.$$controllerAs) {
279280
scope[locals.$$controllerAs] = controller;

0 commit comments

Comments
 (0)