Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
Angular 1.3.x compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dhilt committed Aug 17, 2015
1 parent 0b9bec8 commit 9c1db47
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/ui-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
angular.module('ui.layout', [])
.controller('uiLayoutCtrl', ['$scope', '$attrs', '$element', function uiLayoutCtrl($scope, $attrs, $element) {
// Gives to the children directives the access to the parent layout.
return {
opts: angular.extend({}, $scope.$eval($attrs.uiLayout), $scope.$eval($attrs.options)),
element: $element
};
this.opts = angular.extend({}, $scope.$eval($attrs.uiLayout), $scope.$eval($attrs.options));
this.element = $element;
return this;
}])

.directive('uiLayout', ['$parse', function ($parse) {
Expand Down

0 comments on commit 9c1db47

Please sign in to comment.