Socket
Socket
Sign inDemoInstall

ngx-enter-key

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ngx-enter-key

[![Build Status](https://travis-ci.org/itigoore01/ngx-enter-key.svg?branch=master)](https://travis-ci.org/itigoore01/ngx-enter-key) [![npm version](https://badge.fury.io/js/ngx-enter-key.svg)](https://badge.fury.io/js/ngx-enter-key) [![License: MIT](https


Version published
Weekly downloads
6
increased by200%
Maintainers
1
Install size
73.1 kB
Created
Weekly downloads
 

Readme

Source

Build Status npm version License: MIT

ngx-enter-key

Does not trigger enter key pressed during composing input.

Installation

npm install --save ngx-enter-key

Usage

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { NgxEnterKeyModule } from 'ngx-enter-key';

import { AppComponent } from './app.component';

@NgModule({
    imports: [
        BrowserModule,
        NgxEnterKeyModule
    ],
    declarations: [AppComponent],
    bootstrap: [AppComponent]
})
export class AppModule {}
@Component({
  selector: 'app-form',
  template: `
  <input (ngxEnterKey)="onEnterKey($event)">
  `
})
export class FormComponent {

  onEnterKey(event: KeyboardEvent) {
    console.log(event);
  }

}

Keywords

FAQs

Last updated on 02 Sep 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc