angular-clickable-click
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Clickable (click) for Angular 2+

Angular 2+ Directive adding pointer cursor for elements using (click) directive. Respects [disabled] input.

Installation

  1. Get it from npm i angular-clickable-click --save
  2. Import ClickableClickModule
    import { ClickableClickModule } from 'angular-clickable-click';
    
    @NgModule({
      // ...
      imports: [ClickableClickModule],
      // ...
    })
    class AppModule {}

Usage (click here for a demo)

@Component({
  selector: 'app',
  template: `
    <div (click)="isDisabled = true" [disabled]="isDisabled">
    I am <b *ngIf="isDisabled">no longer</b> clickable
    </div>
  `
})
export class AppComponent {
  public isDisabled: boolean = false;
}

/angular-clickable-click/

    Package Sidebar

    Install

    npm i angular-clickable-click

    Weekly Downloads

    49

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    12.4 kB

    Total Files

    22

    Last publish

    Collaborators

    • danielkucal