Skip to content

Commit

Permalink
Merge pull request #1659 from Nate-Wilkins/master
Browse files Browse the repository at this point in the history
fix(uiView): add `$element` to locals for view controller
  • Loading branch information
nateabele committed Dec 27, 2014
2 parents 699b9fd + db68914 commit 7e38adb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/viewDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7e38adb

Please sign in to comment.