angular-stormpath-ionic
v0.0.3
Published
Ionic pages for integrating with Stormpath's API
Downloads
10
Readme
Stormpath Ionic Pages
Ionic pages for integrating with Stormpath's API
Table of contents
About
Ionic pages (Login, Register, and Forgot Password) for integrating with Stormpath's API.
Installation
Install through npm:
npm install --save angular-stormpath-ionic
Then include the module and pages in your Ionic app's app.module.ts
:
import { Component, NgModule } from '@angular/core';
import { StormpathIonicModule, LoginPage, ForgotPasswordPage, RegisterPage } from 'angular-stormpath-ionic';
@NgModule({
...
imports: [
IonicModule.forRoot(MyApp),
StormpathIonicModule
],
entryComponents: [
...
LoginPage,
ForgotPasswordPage,
RegisterPage
],
...
})
export class AppModule {}
Usage without a module bundler
<script src="node_modules/dist/umd/angular-stormpath-ionic/angular-stormpath-ionic.js"></script>
<script>
// everything is exported stormpathIonic namespace
</script>
Development
Prepare your environment
- Install Node.js and NPM (should come with)
- Install local dev dependencies:
npm install
while current directory is this repo
Development server
Run npm start
to start a development server on port 8000 with auto reload + tests.
Testing
Run npm test
to run tests once or npm run test:watch
to continually run tests.
Release
- Bump the version in package.json (once the module hits 1.0 this will become automatic)
npm run release
License
Apache-2.0 © Stormpath