Skip to content

Commit 4e9b0f0

Browse files
committed
fixed require
1 parent f4dc74e commit 4e9b0f0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/angular-bricklayer.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ angular.module('jtt_bricklayer', [])
2222
scope.$on('bricklayer.redraw', function () {
2323
bricklayer.redraw();
2424
});
25-
}
25+
},
26+
controller: function ($scope) {}
2627
}
2728
}])
2829
.directive('bricklayerAppend', function () {
2930
return {
30-
require: '?bricklayer',
31+
require: '^^bricklayer',
3132
restrict: 'ACE',
3233
link: function (scope, element, attrs) {
3334
scope.$emit('bricklayer.append', element[0]);
@@ -36,7 +37,7 @@ angular.module('jtt_bricklayer', [])
3637
})
3738
.directive('bricklayerPrepend', function () {
3839
return {
39-
require: '?bricklayer',
40+
require: '^^bricklayer',
4041
restrict: 'ACE',
4142
link: function (scope, element, attrs) {
4243
scope.$emit('bricklayer.prepend', element[0]);

0 commit comments

Comments
 (0)