Comments (4)
Are you expecting the directive to check model's existing value type and use string? What if the model value is null ?
from angular.
I believe this is WAI @Matrix-Zhang - we don't know your existing value type and assume that type="number"
means you want a num
.
from angular.
For example:
<input id="xxx" type="number" ngModel="yyy">
the xxx.value is string type, but yyy will transform to number type...
from angular.
ngModel is smart about what type it thinks you want.
You can always use (change)="inputChanged($event)"
in the HTML if you want to capture the raw event yourself and do something custom / only use strings.
from angular.
Related Issues (20)
- DDC issue main method not called HOT 2
- EXCEPTION: Assertion failed: org-dartlang-app:///packages/angular_forms/src/directives/shared.dart:25:7 dir.valueAccessor != null HOT 2
- NgIf initiated by an ComponentFactory thows an error when trying to copy an NgContent
- Dead code fixes tests for component using AsyncPipe
- CSS Invalid output for scientific e notation
- Null-safety in stable HOT 17
- Not sure If I am correct, I also find it hard to understand on how to correctly implements custom value accessor. HOT 1
- Can't work together with grpc-dart-web HOT 5
- Depends on outdated build versions HOT 2
- Api Reference links are broken
- analyzer-0.40.6/lib/src/error/best_practices_verifier.dart:258:50: Error: The property 'displayString' is defined in multiple extensions for 'TargetKind' and neither is more specific. HOT 2
- Application no longer building with Dart 2.14 and cannot update dependencies HOT 5
- Target of URI doesn't exist: 'package:angular/security.dart'
- Thank you! HOT 3
- Angular 7 - Can't bind to 'data-*' since it isn't an input of any bound directive or a native property. HOT 6
- Angular Dart & attribute value should be passed as any value. HOT 3
- Why isn't the ngFactory coupled to the Component's class?
- angular-dart build serve error while running webdev serve HOT 2
- Error on installation of webdev
- where can find the latest document? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular.