Skip to content

Documentation: Example? #1

Description

@cepm-nate

I was wondering if you could put a 'Usage' example in the main readme? In my Ionic 2 project I've put the 'secure-ftp-master' folder into the 'node_modules' folder. Then in my app.module.ts added import { FTP } from 'secure-ftp-master';, and added FTP to the providers array. Then in my module, I used the same import statement, and also include private ftp: FTP in the construtor.

But when I compile the app it complains that "Can't resolve all parameters", and shows a "?" referring to the private ftp: FTP argument in the constructor.

These same steps are what I've done for many other libraries, and I'm wondering if this is how someone would use your library, or if something different is needed.

Thanks!

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