| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Picture credit: How to create an Angular library
Wechaty Web Component NgModule Powered by Angular 9 & ng-packagr
Talk is cheap, show me the code:
import { WechatyModule } from '@chatie/angular'
@NgModule({
...
imports: [
WechatyModule,
],
...
})<wechaty
#wechaty
token="WECHATY_TOKEN"
(error) = "onEvent('error' , $event)"
(heartbeat) = "onEvent('heartbeat' , $event)"
(login) = "onEvent('login' , $event)"
(logout) = "onEvent('logout' , $event)"
(message) = "onEvent('message' , $event)"
(scan) = "onEvent('scan' , $event)"
>
</wechaty>
<button (click)="wechaty.shutdown()"> Shutdown</button>Moer details, see code. ;-]
GitHub Issue - https://github.com/chatie/angular/issues
Huan Li (LinkedIn) huan@chatie.io
| Back | FazBrowse Home | New Git URL |