Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ionic3 provider #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions ionic/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Ionic3 Usage

This provider can be used in any Ionic application :)

## Installation
Make sure, you're inside your ionic-project's folder.

Then run:
```bash
$ ionic generate provider sha2
```

Now, open your newly generated provider and replace it's code with `sha2.ts` `s code which you can find in this folder.

## Usage
Now, on any page, add:
```typescript
import {Sha2Provider} from "../../providers/sha2/sha2";

...

constructor(..., private sha2: Sha2Provider) {}

ionViewDidLoad() {
...
console.log(this.sha2.SHA2_512('hello'));
}

...
```

*Thanks a lot to @markvandenbrink for writing this initially in normal Typescript!*
Loading