Open Roba1993 opened 9 years ago
Hey guys,
first of all thank you for your wonderful work here! I have a real Issue with angular dart when I want to use the currency filter/formatter.
I want to use the currency filter as follow
<input type="number" class="form-control" ng-model="calcPrice() | currency:'CAD'" placeholder="10€" aria-describedby="basic-addon5" readonly>
I get the following error
Exception: No formatters have been registered STACKTRACE: #0 _ExpressionVisitor.visitFormatter (package:angular/change_detection/ast_parser.dart:123:7) #1 Formatter.accept (package:angular/core/parser/syntax.dart:81:52) #2 _UnwrapExceptionDecorator.accept (package:angular/core/parser/parser.dart:112:48) #3 _ExpressionVisitor.visit (package:angular/change_detection/ast_parser.dart:47:49) #4 ASTParser.call (package:angular/change_detection/ast_parser.dart:34:72) #5 Scope.watch (package:angular/core/scope.dart:255:31) #6 NgModel.watchCollection= (package:angular/directive/ng_model.dart:154:28) #7 NgModel.NgModel (package:angular/directive/ng_model.dart:51:5) #8 typeFactories.<anonymous closure> (http://localhost:63342/Ergo/web/main_generated_type_factory_maps.dart:223:54) #9 DirectiveInjector._new (package:angular/core_dom/directive_injector.dart:366:26) #10 DirectiveInjector._getDirectiveByKey (package:angular/core_dom/directive_injector.dart:271:111) #11 DirectiveInjector._getByKey (package:angular/core_dom/directive_injector.dart:249:46) #12 DirectiveInjector.getByKey (package:angular/core_dom/directive_injector.dart:230:23) #13 ElementBinder._link (package:angular/core_dom/element_binder.dart:218:47) #14 ElementBinder.bind (package:angular/core_dom/element_binder.dart:310:10) #15 ViewFactory._bindTagged (package:angular/core_dom/view_factory.dart:79:36) #16 ViewFactory._link (package:angular/core_dom/view_factory.dart:119:24) #17 ViewFactory.call (package:angular/core_dom/view_factory.dart:58:10) #18 BoundTranscludingComponentFactory.call.<anonymous closure>.<anonymous closure> (package:angular/core_dom/transcluding_component_factory.dart:112:54) #19 _rootRunUnary (dart:async/zone.dart:902) #20 _ZoneDelegate.runUnary (dart:async/zone.dart:508) #21 _onRunUnary.<anonymous closure> (package:angular/core/zone.dart:122:63) #22 VmTurnZone._onRunBase (package:angular/core/zone.dart:104:16) #23 _onRunUnary (package:angular/core/zone.dart:122:17) #24 _CustomZone.runUnary (dart:async/zone.dart:804) #25 _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:484) #26 _Future._propagateToListeners (dart:async/future_impl.dart:567) #27 _Future._completeWithValue (dart:async/future_impl.dart:358) #28 _Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:412) #29 _rootRun (dart:async/zone.dart:891) #30 _ZoneDelegate.run (dart:async/zone.dart:501) #31 _onScheduleMicrotask.<anonymous closure> (package:angular/core/zone.dart:127:45) #32 RootScope._runAsyncFns (package:angular/core/scope.dart:924:25) #33 RootScope.digest (package:angular/core/scope.dart:813:38) #34 Scope.apply (package:angular/core/scope.dart:316:24) #35 RootScope.RootScope.<anonymous closure> (package:angular/core/scope.dart:768:12) #36 _rootRun (dart:async/zone.dart:895) #37 _ZoneDelegate.run (dart:async/zone.dart:501) #38 VmTurnZone._finishTurn (package:angular/core/zone.dart:168:21) #39 VmTurnZone._onRunBase (package:angular/core/zone.dart:111:43) #40 _onRunUnary (package:angular/core/zone.dart:122:17) #41 _CustomZone.runUnary (dart:async/zone.dart:804) #42 _CustomZone.runUnaryGuarded (dart:async/zone.dart:712) #43 _CustomZone.bindUnaryCallback.<anonymous closure> (dart:async/zone.dart:738)
Thank you for your help! (I hope it's not a really stupid error from my side...)
Hey guys,
first of all thank you for your wonderful work here! I have a real Issue with angular dart when I want to use the currency filter/formatter.
I want to use the currency filter as follow
I get the following error
Thank you for your help! (I hope it's not a really stupid error from my side...)