@chatie/angular
Wechaty Component NgModule
Last updated 4 months ago by zixia .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @chatie/angular 
SYNC missed versions from official npm registry.

Wechaty Web Component wechaty

npm version NPM

Angular Library

Picture credit: How to create an Angular library

Powered by Wechaty

Wechaty Web Component NgModule Powered by Angular 9 & ng-packagr

USAGE

Demo

https://stackblitz.com/edit/chatie-angular?file=src%2Fapp%2Fapp.component.html

Talk is cheap, show me the code:

App Module

import { WechatyModule }  from '@chatie/angular'

@NgModule({
  ...
  imports: [
    WechatyModule,
  ],
  ...
})

Html Component

<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. ;-]

REFERENCES

NPM

CHANGELOG

v0.6 master (Mar 23, 2020)

  1. Upgrade Angular version from 6 to 9
  2. Enable GitHub Actions
  3. Demo on <StackBlitz.com>

v0.4 (May 28th, 2018)

  1. Upgrade RxJS version from 5 to 6
  2. Upgrade Angular version from 5 to 6

v0.3 (May 1st, 2018)

  1. Support CI/CD to NPM@next

v0.2 (Apr 2018)

  1. Upgrade Angular from v4 to v5
  2. use ng-packagr to pack NgModule(instead of tsc&rollup by hand)

v0.1 (May 2017)

  1. Upgrade Angular from v2 to v4
  2. NgModule-ize Wachaty Component
  3. Playground: https://chatie.io/angular/

v0.0.1 (Jul 2016)

  1. Modulized Angular 2 Component: wechaty-core
  2. Support all(and same) IO Events of Wechaty

SUPPORT

Github Issue - https://github.com/chatie/angular/issues

Author

Huan LI (李卓桓) zixia@zixia.net

Profile of Huan LI (李卓桓) on StackOverflow

Copyright & License

  • Code & Docs © 2016-now Huan LI <zixia@zixia.net>
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons

Current Tags

  • 0.6.1                                ...           latest (4 months ago)
  • 0.5.5                                ...           next (4 months ago)

53 Versions

  • 0.6.1                                ...           4 months ago
  • 0.5.5                                ...           4 months ago
  • 0.5.4                                ...           4 months ago
  • 0.5.3                                ...           4 months ago
  • 0.5.0                                ...           4 months ago
  • 0.4.11                                ...           5 months ago
  • 0.4.8                                ...           2 years ago
  • 0.4.6                                ...           2 years ago
  • 0.4.5                                ...           2 years ago
  • 0.4.3                                ...           2 years ago
  • 0.4.2                                ...           2 years ago
  • 0.4.1                                ...           2 years ago
  • 0.3.2                                ...           2 years ago
  • 0.3.1                                ...           2 years ago
  • 0.2.10                                ...           2 years ago
  • 0.2.7                                ...           2 years ago
  • 0.2.5                                ...           2 years ago
  • 0.2.6                                ...           2 years ago
  • 0.2.4                                ...           2 years ago
  • 0.1.46                                ...           2 years ago
  • 0.1.45                                ...           2 years ago
  • 0.1.44                                ...           3 years ago
  • 0.1.43                                ...           3 years ago
  • 0.1.42                                ...           3 years ago
  • 0.1.39                                ...           3 years ago
  • 0.1.38                                ...           3 years ago
  • 0.1.37                                ...           3 years ago
  • 0.1.36                                ...           3 years ago
  • 0.1.35                                ...           3 years ago
  • 0.1.34                                ...           3 years ago
  • 0.1.33                                ...           3 years ago
  • 0.1.32                                ...           3 years ago
  • 0.1.31                                ...           3 years ago
  • 0.1.30                                ...           3 years ago
  • 0.1.29                                ...           3 years ago
  • 0.1.28                                ...           3 years ago
  • 0.1.21                                ...           3 years ago
  • 0.1.20                                ...           3 years ago
  • 0.1.19                                ...           3 years ago
  • 0.1.18                                ...           3 years ago
  • 0.1.17                                ...           3 years ago
  • 0.1.16                                ...           3 years ago
  • 0.1.15                                ...           3 years ago
  • 0.1.14                                ...           3 years ago
  • 0.1.13                                ...           3 years ago
  • 0.1.12                                ...           3 years ago
  • 0.1.11                                ...           3 years ago
  • 0.1.10                                ...           3 years ago
  • 0.1.9                                ...           3 years ago
  • 0.1.8                                ...           3 years ago
  • 0.1.7                                ...           3 years ago
  • 0.1.6                                ...           3 years ago
  • 0.1.4                                ...           3 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |