An open API service indexing awesome lists of open source software.

https://github.com/danielkucal/angular-clickable-click

Adds cursor: pointer styling to elements having (click) directive, prevents event when disabled.
https://github.com/danielkucal/angular-clickable-click

angular angular-directive angular4

Last synced: 11 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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`
```typescript
import { ClickableClickModule } from 'angular-clickable-click';

@NgModule({
// ...
imports: [ClickableClickModule],
// ...
})
class AppModule {}
```

## Usage ([click here for a demo](https://stackblitz.com/edit/angular-gitter-qnta72?file=app%2Fapp.component.ts))
```typescript
@Component({
selector: 'app',
template: `


I am no longer clickable

`
})
export class AppComponent {
public isDisabled: boolean = false;
}
```