Skip to content

Cannot get this to work in Angular 8. No error, just not see the input element working. #32

Description

@bill8575

I have installed numeric-keyboard via npm into the Angular 8 project. I got no errors when I did 'ng serve' but just not seeing the input box getting manifested on the browser. Below is my simple input dialog ... I am thinking that I perhaps need to install additional packages to work with Webpack or something, I added html-loader@0.5.5 but no avail. Any help is appreciated.

import { Component } from '@angular/core';
import { NumericKeyboardModule } from 'numeric-keyboard/dist/numeric_keyboard.angular';

@component({
selector: 'app-root',
template: <div class="input"> <label>&nbsp;&nbsp;Amount: </label> <numeric-input class="numeric-input" type="number" placehold="type something here"></numeric-input> </div>,
})

export class AppComponent {
public amount: number | string = ''
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions