Awesome Open Source
Awesome Open Source


npm npm npm

A simple directive to add easter eggs in your Angular 2+ application.


To install this library, run:

$ npm install ngx-konami --save

Getting started

Once you have published your library to npm, you can import your library in any Angular application :

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

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

// Import the library
import { KonamiModule } from 'ngx-konami';

  declarations: [
  imports: [

    // Specify KonamiModule as an import
  providers: [],
  bootstrap: [AppComponent]
export class AppModule { }

Once your library is imported, you can use its directive in your Angular application :

<!-- You can now use the konami directive in app.component.html -->
<div (konami)="sayHello()"></div>

The method sayHello will be called when you type the konami code !


To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

To lint all *.ts files:

$ npm run lint



Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,048,460
Angular (54,895
Angular4 (54,895
Angular5 (54,895
Angular6 (54,895
Ngx (2,536
Egg (2,225
Konami (28
Konamicode (19
Konami Js (5