Skip to content

Documentation: Example? #1

@cepm-nate

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!

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