I'm getting error like this in console when use angular.compoent (v.1.5)
ng-inspector: An error occurred attempting to invoke directive: seriesList Error: [ng:areq] Argument 'fn' is not a function, got Object(…)
Of course component defining object is not a function as for directive.
angular.directive(name, function () { return {} });
versus
angular.component(name, { });