Newline Proliferating Maniac
Have ideas to improve npm?Join in the discussion! »

@yci/alicloud-feedbackTypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

alicloud-feedback

Ionic wrap for cordova-plugin-alicloud-feedback

Installation

  1. Install the Cordova plugin cordova-plugin-alicloud-feedback

  2. Install the Ionic plugin

 npm i -S @yci/alicloud-feedback
  1. Add it to your app’s NgModule.
// Import your library
import { AlicloudFeedbackModule } from '@yci/alicloud-feedback';
 
@NgModule({
 
  ...
 
  imports[
 
    ...
 
    // Specify your library as an import
    AlicloudFeedbackModule.forRoot()
  ],
  
  ...
 
})
export class AppModule { }

Usage

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

import { AlicloudFeedback } from '@yci/alicloud-feedback';
 
async constructor(private alicloudFeedbackAlicloudFeedback) {
 
  const extras = {
    // ... 
  };
 
  try {
    await this.alicloudFeedback.open(extras);
  } catch(e) {
    console.error(e);
  }
 
}

Development

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

$ npm run build

License

MIT © Yu Chen

Keywords

Install

npm i @yci/alicloud-feedback

DownloadsWeekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar