Skip to content

Update Angular Press Event Emitter #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,19 @@ class App extends React.Component {
```

#### Angular

```typescript
import { NumericKeyboardModule } from 'numeric-keyboard/dist/numeric_keyboard.angular';

@NgModule({
imports: [
NumericKeyboardModule,
],
})
export class AppModule { }

```

```typescript
import { Component } from '@angular/core';
@Component({
Expand Down
2 changes: 1 addition & 1 deletion dist/numeric_keyboard.angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = __webpack_require__(3);
var keyboard_1 = __webpack_require__(6);
var template = "\n<table class=\"numeric-keyboard\">\n <tr *ngFor=\"let r of ks.resolvedLayout\">\n <td *ngFor=\"let c of r\"\n [attr.rowspan]=\"c.rowspan\"\n [attr.colspan]=\"c.colspan\"\n [attr.data-key]=\"c.key\"\n [attr.data-icon]=\"c.key === ENTER ? kp.entertext : c.key\"\n class=\"numeric-keyboard-key\"\n (touchend)=\"onTouchend(c.key, $event)\">\n </td>\n </tr>\n</table>\n";
var template = "\n<table class=\"numeric-keyboard\">\n <tr *ngFor=\"let r of ks.resolvedLayout\">\n <td *ngFor=\"let c of r\"\n [attr.rowspan]=\"c.rowspan\"\n [attr.colspan]=\"c.colspan\"\n [attr.data-key]=\"c.key\"\n [attr.data-icon]=\"c.key === ENTER ? kp.entertext : c.key\"\n class=\"numeric-keyboard-key\"\n (click)=\"onTouchend(c.key, $event)\">\n </td>\n </tr>\n</table>\n";
var Parent = /** @class */ (function () {
function Parent() {
}
Expand Down
2 changes: 1 addition & 1 deletion vendor/angular/keyboard/keyboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const template = `
[attr.data-key]="c.key"
[attr.data-icon]="c.key === ENTER ? kp.entertext : c.key"
class="numeric-keyboard-key"
(touchend)="onTouchend(c.key, $event)">
(click)="onTouchend(c.key, $event)">
</td>
</tr>
</table>
Expand Down