New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@chatie/angular

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chatie/angular

Chatie Web Component NgModule for Angular

  • 0.1.45
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

@chatie/angular

Build Status npm version

Chatie Web Component NgModule for Angular 4

Angular Library

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"

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

Reference

NPM

Version History

v0.1.0 (May 2017)

  1. Upgrade Angular 4.1
  2. NgModule-ize Wachaty Component

v0.0.1 (Jul 2016)

  1. Modulized Angular 2 Component: wechaty-core
  2. 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)

profile for zixia at Stack Overflow, Q&A for professional and enthusiast programmers
  • Code & Docs ©2016-2017 zixia
  • Code released under the MIT license
  • Docs released under Creative Commons

Keywords

FAQs

Package last updated on 05 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc