alicloud-feedback
Ionic wrap for cordova-plugin-alicloud-feedback
Installation
-
Install the Cordova plugin cordova-plugin-alicloud-feedback
-
Install the Ionic plugin
npm i -S @yci/alicloud-feedback
- 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 alicloudFeedback: AlicloudFeedback) {
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