Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions