Skip to content
This repository was archived by the owner on Apr 2, 2019. It is now read-only.
This repository was archived by the owner on Apr 2, 2019. It is now read-only.

Can't bind to 'number' since it isn't a known property of 'ng2-odometer #164

@briankitt

Description

@briankitt

I followed installed step by step, and this is what I am getting.

ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'number' since it isn't a known property of 'ng2-odometer'.

  1. If 'ng2-odometer' is an Angular component and it has 'number' input, then verify that it is part of this module.
  2. If 'ng2-odometer' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
  3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("

    MARKET AREAS


    <ng2-odometer [ERROR ->][number]="3" [config]="{ }">


    "): ng:///PublicModule/IndexComponent.html@384:26
    Can't bind to 'config' since it isn't a known property of 'ng2-odometer'.
  4. If 'ng2-odometer' is an Angular component and it has 'config' input, then verify that it is part of this module.
  5. If 'ng2-odometer' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
  6. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("

    MARKET AREAS


    <ng2-odometer [number]="3" [ERROR ->][config]="{ }">


    "): ng:///PublicModule/IndexComponent.html@384:39
    'ng2-odometer' is not a known element:
  7. If 'ng2-odometer' is an Angular component, then verify that it is part of this module.
  8. If 'ng2-odometer' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("

    MARKET AREAS


    [ERROR ->]<ng2-odometer [number]="3" [config]="{ }">


    "): ng:///PublicModule/IndexComponent.html@384:12
    Error: Template parse errors:
    Can't bind to 'number' since it isn't a known property of 'ng2-odometer'.
  9. If 'ng2-odometer' is an Angular component and it has 'number' input, then verify that it is part of this module.
  10. If 'ng2-odometer' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
  11. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("

    MARKET AREAS


    <ng2-odometer [ERROR ->][number]="3" [config]="{ }">


    "): ng:///PublicModule/IndexComponent.html@384:26
    Can't bind to 'config' since it isn't a known property of 'ng2-odometer'.
  12. If 'ng2-odometer' is an Angular component and it has 'config' input, then verify that it is part of this module.
  13. If 'ng2-odometer' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
  14. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("

    MARKET AREAS


    <ng2-odometer [number]="3" [ERROR ->][config]="{ }">


    "): ng:///PublicModule/IndexComponent.html@384:39
    'ng2-odometer' is not a known element:
  15. If 'ng2-odometer' is an Angular component, then verify that it is part of this module.
  16. If 'ng2-odometer' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("

    MARKET AREAS


    [ERROR ->]<ng2-odometer [number]="3" [config]="{ }">


    "): ng:///PublicModule/IndexComponent.html@384:12
    at syntaxError (compiler.js:1021)
    at TemplateParser.push../node_modules/@angular/compiler/fesm5/compiler.js.TemplateParser.parse (compiler.js:14830)
    at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._parseTemplate (compiler.js:24018)
    at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileTemplate (compiler.js:24005)
    at compiler.js:23948
    at Set.forEach ()
    at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js:23948)
    at compiler.js:23858
    at Object.then (compiler.js:1012)
    at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:23857)
    at syntaxError (compiler.js:1021)
    at TemplateParser.push../node_modules/@angular/compiler/fesm5/compiler.js.TemplateParser.parse (compiler.js:14830)
    at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._parseTemplate (compiler.js:24018)
    at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileTemplate (compiler.js:24005)
    at compiler.js:23948
    at Set.forEach ()
    at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js:23948)
    at compiler.js:23858
    at Object.then (compiler.js:1012)
    at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:23857)
    at resolvePromise (zone.js:814)
    at resolvePromise (zone.js:771)
    at zone.js:873
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
    at Object.onInvokeTask (core.js:3811)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420)
    at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
    at drainMicroTaskQueue (zone.js:595)
    defaultErrorLogger @ core.js:1673
    push../node_modules/@angular/core/fesm5/core.js.ErrorHandler.handleError @ core.js:1719
    push../src/app/global/errorhandler.ts.AppErrorHandler.handleError @ errorhandler.ts:42
    next @ core.js:4311
    schedulerFn @ core.js:3551
    push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
    push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
    push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
    push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
    push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
    push../node_modules/@angular/core/fesm5/core.js.EventEmitter.emit @ core.js:3535
    (anonymous) @ core.js:3842
    push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:388
    push../node_modules/zone.js/dist/zone.js.Zone.run @ zone.js:138
    push../node_modules/@angular/core/fesm5/core.js.NgZone.runOutsideAngular @ core.js:3779
    onHandleError @ core.js:3842
    push../node_modules/zone.js/dist/zone.js.ZoneDelegate.handleError @ zone.js:392
    push../node_modules/zone.js/dist/zone.js.Zone.runGuarded @ zone.js:154
    _loop_1 @ zone.js:677
    api.microtaskDrainDone @ zone.js:686
    drainMicroTaskQueue @ zone.js:602
    Promise.then (async)
    scheduleMicroTask @ zone.js:578
    push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:410
    onScheduleTask @ zone.js:297
    push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:401
    push../node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ zone.js:232
    push../node_modules/zone.js/dist/zone.js.Zone.scheduleMicroTask @ zone.js:252
    scheduleResolveOrReject @ zone.js:862
    resolvePromise @ zone.js:808
    (anonymous) @ zone.js:724
    webpackJsonpCallback @ bootstrap:23
    (anonymous) @ public-public-module.js:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions