The Wayback Machine - https://web.archive.org/web/20200910114840/https://github.com/DanielKucal/angular-clickable-click
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Clickable (click) for Angular 4+

Angular 4+ Directive adding pointer cursor for elements using (click) directive.

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;
}

About

Adds cursor: pointer styling to elements having (click) directive, prevents event when disabled.

Topics

Resources

License

Packages

No packages published
You can’t perform that action at this time.