@chatie/angular
![npm version](https://badge.fury.io/js/%40chatie%2Fangular.svg)
Chatie Web Component NgModule for Angular 4
![Angular Library](http://www.dzurico.com/wp-content/uploads/2016/12/library-in-angular.jpg)
Picture credit: How to create an Angular library
TL;DR
Demo
http://chatie.github.io/angular/
Talk is cheap, show me the code:
App Module
import { WechatyModule } from '@chatie/angular'
@NgModule({
...
imports: [
WechatyModule,
],
...
})
Html Component
<wechaty
#wechaty
token="WECHATY_TOKEN"
(scan) = "onEvent('scan' , $event)"
(login) = "onEvent('login' , $event)"
>
<button (click)="wechaty.logoff()"> Logoff</button>
</wechaty>
Moer details, see code. ;-]
Reference
NPM
Version History
v0.1.0 (May 2017)
- Upgrade Angular 4.1
- NgModule-ize Wachaty Component
v0.0.1 (Jul 2016)
- Modulized Angular 2 Component:
wechaty-core
- Support all(and same) IO Events of Wechaty
Known Issues & Support
Github Issue - https://github.com/chatie/angular/issues
Author
Zhuohuan LI zixia@zixia.net (http://linkedin.com/in/zixia)
Copyright & License
- Code & Docs ©2016-2017 zixia
- Code released under the MIT license
- Docs released under Creative Commons