Skip to content

Error "Argument 'fn' is not a function" trying to invoke component as a directive  #162

@dimaShin

Description

@dimaShin

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, { });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions