Skip to content

Commit 7e38adb

Browse files
committed
Merge pull request angular-ui#1659 from Nate-Wilkins/master
fix(uiView): add `$element` to locals for view controller
2 parents 699b9fd + db68914 commit 7e38adb

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)