typescript - Using Angular timer in ionic3 -
i using angular timer(i.e. http://siddii.github.io/angular-timer/index.html#/markup5 ) in ionic3, when put timer tag in html page, have error. don’t know need do.
<timer end-time="{{timelimit.timelimitdate}}">{{days}} days, {{hours}} hours, {{minutes}} minutes, {{seconds}} seconds.</timer>
the error:
unhandled promise rejection: template parse errors: 'timer' not known element: 1. if 'timer' angular component, verify part of module. 2. allow element add 'no_errors_schema' '@ngmodule.schemas' of component. ("ate}}">{{days}} days, {{hours}} hours, {{minutes}} minutes, {{seconds}} seconds.</timer>-->
did know need do, lot~
you can not use above timer ionic 3
.because uses angularjs
.you need find angular module that.
i think can use ng2-simple-timer module on ionic app.
add simpletimer
module providers (eg. app.module.ts
).
import { simpletimer } 'ng2-simple-timer'; @ngmodule({ providers: [simpletimer] })
more info here.
Comments
Post a Comment