Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
minification fix for controller and service
Browse files Browse the repository at this point in the history
  • Loading branch information
wasilak committed Nov 13, 2016
1 parent 7931028 commit c5b30fd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions dist/angular_c3_simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
// service definition, if you want to use itm you have to include it in controller
// this service allows you to access every chart by it's ID and thanks to this,
// you can perform any API call available in C3.js http://c3js.org/examples.html#api
.service('c3SimpleService', function() {
.service('c3SimpleService', [function() {
return {};
})
}])

// directive definition, if you want to use itm you have to include it in controller
.directive('c3Simple', ['c3SimpleService', function(c3SimpleService) {
Expand All @@ -24,7 +24,7 @@
},
template: '<div></div>',
replace: true,
controller: function($scope, $element) {
controller: ['$scope','$element', function($scope, $element) {
// Wait until id is set before binding chart to this id
$scope.$watch($element, function() {

Expand Down Expand Up @@ -57,7 +57,7 @@
}, true);
}, true);
});
}
}]
};
}]);
}(c3));
2 changes: 1 addition & 1 deletion dist/angular_c3_simple.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/angular_c3_simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
// service definition, if you want to use itm you have to include it in controller
// this service allows you to access every chart by it's ID and thanks to this,
// you can perform any API call available in C3.js http://c3js.org/examples.html#api
.service('c3SimpleService', function() {
.service('c3SimpleService', [function() {
return {};
})
}])

// directive definition, if you want to use itm you have to include it in controller
.directive('c3Simple', ['c3SimpleService', function(c3SimpleService) {
Expand All @@ -24,7 +24,7 @@
},
template: '<div></div>',
replace: true,
controller: function($scope, $element) {
controller: ['$scope','$element', function($scope, $element) {
// Wait until id is set before binding chart to this id
$scope.$watch($element, function() {

Expand Down Expand Up @@ -57,7 +57,7 @@
}, true);
}, true);
});
}
}]
};
}]);
}(c3));

0 comments on commit c5b30fd

Please sign in to comment.