Skip to content

Service example on trailsjs.io and in these docs have incorrect function call #38

@SupaMic

Description

@SupaMic

https://trailsjs.io/doc/en/build/service.html#implement-reportcontroller

line: this.services.ReportService.getLatest(cik)
returns: undefined error which stems from this.services
TypeError: Uncaught error: Cannot read property 'ReportService' of undefined

correction: this.app.services

Am I missing some config to avoid this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions