@yca/api
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Build Status Coverage Status MIT license

@yca/api

Installation

  1. Install the Ionic plugin
 npm i -S @yca/api
  1. Add it to your app’s NgModule.
// Import your library
import { ApiModule } from '@yca/api';

@NgModule({

  ...

  imports: [

    ...

    // Specify your library as an import
    ApiModule.forRoot('http://localhost')
  ],
  
  ...

})
export class AppModule { }

Usage

Once your library is imported, you can use its service in your Angular application:

import { Api } from '@yca/api';

constructor(public api: Api) {
  api.root // get the root url
}

Development

To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

License

MIT © Yu Chen

Readme

Keywords

Package Sidebar

Install

npm i @yca/api

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • kuyoonjo