refactor umbbuttongroup directive to follow angular style guide
This commit is contained in:
@@ -1,12 +1,21 @@
|
||||
angular.module("umbraco.directives")
|
||||
.directive('umbButtonGroup', function () {
|
||||
return {
|
||||
scope: {
|
||||
actions: "=",
|
||||
model: "="
|
||||
},
|
||||
restrict: 'E',
|
||||
replace: true,
|
||||
templateUrl: 'views/components/buttons/umb-button-group.html'
|
||||
};
|
||||
});
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
function ButtonGroupDirective() {
|
||||
|
||||
var directive = {
|
||||
restrict: 'E',
|
||||
replace: true,
|
||||
templateUrl: 'views/components/buttons/umb-button-group.html',
|
||||
scope: {
|
||||
actions: "=",
|
||||
model: "="
|
||||
}
|
||||
};
|
||||
|
||||
return directive;
|
||||
}
|
||||
|
||||
angular.module('umbraco.directives').directive('umbButtonGroup', ButtonGroupDirective);
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user