{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/4014","labels_url":"https://api.github.com/repos/angular/angular/issues/4014/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/4014/comments","events_url":"https://api.github.com/repos/angular/angular/issues/4014/events","html_url":"https://github.com/angular/angular/issues/4014","id":105045936,"number":4014,"title":"type=\"number\" passes String as argument","user":{"login":"rightisleft","id":3611930,"avatar_url":"https://avatars.githubusercontent.com/u/3611930?v=3","gravatar_id":"","url":"https://api.github.com/users/rightisleft","html_url":"https://github.com/rightisleft","followers_url":"https://api.github.com/users/rightisleft/followers","following_url":"https://api.github.com/users/rightisleft/following{/other_user}","gists_url":"https://api.github.com/users/rightisleft/gists{/gist_id}","starred_url":"https://api.github.com/users/rightisleft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rightisleft/subscriptions","organizations_url":"https://api.github.com/users/rightisleft/orgs","repos_url":"https://api.github.com/users/rightisleft/repos","events_url":"https://api.github.com/users/rightisleft/events{/privacy}","received_events_url":"https://api.github.com/users/rightisleft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-05T20:03:13Z","updated_at":"2015-09-14T01:54:10Z","closed_at":null,"body":"When setting the field of:   \r\n```\r\nnum bZip;\r\n```\r\nFrom:\r\n```\r\n        <div class=\"form-group\">\r\n            <label for=\"billing_zip\">Zip</label>\r\n            <input type=\"number\" id=\"billing_zip\" [(ng-model)]=\"dto.bZip\" class=\"form-control\" [required]=\"true\"/>\r\n        </div>\r\n```\r\n\r\n>EXCEPTION: Error during evaluation of \"ngModel\"\r\n  ORIGINAL EXCEPTION: type 'String' is not a subtype of type 'num' of 'value'.\r\n  ORIGINAL STACKTRACE:\r\n\r\nUsing Angular Dart alpha 35 \r\n\r\n\r\nFix: if i set the field to String bZip on the DTO object\r\n\r\n\r\n```\r\nname: 'tickets'\r\nversion: 0.0.1\r\ndescription: A ticket commerce application\r\nauthor: Jack Murphy jack@rightisleft.com\r\nhomepage: https://www.rightisleft.com\r\nenvironment:\r\n  sdk: '>=1.0.0 <2.0.0'\r\ndependencies:\r\n#Server Dependencies\r\n  json_object: \"1.0.19\"\r\n  mongo_dart: \"0.1.46\"\r\n  connection_pool: \"0.1.0+2\"\r\n  dartson: \"0.2.4\"\r\n  guinness: \"0.1.17\"\r\n  shelf: '>=0.6.2 <0.7.0'\r\n  shelf_static: \"0.2.2\"\r\n  shelf_route: \"0.14.0\"\r\n#Client Dependencies\r\n  bootjack: \"0.6.5\"\r\n  browser: \">=0.10.0+2 <0.11.0\"\r\n  sass: \"0.4.2\"\r\n  angular2: \"2.0.0-alpha.35\"\r\ntransformers:\r\n- dartson\r\n- sass\r\n- angular2:\r\n    entry_points:\r\n        - web/main.dart\r\n    reflection_entry_points:\r\n        - web/main.dart\r\n- $dart2js:\r\n    minify: true\r\n    commandLineOptions:\r\n    - --dump-info\r\n    - --show-package-warnings\r\n    - --trust-type-annotations\r\n    - --trust-primitives\r\n```"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/139939151","html_url":"https://github.com/angular/angular/issues/4014#issuecomment-139939151","issue_url":"https://api.github.com/repos/angular/angular/issues/4014","id":139939151,"user":{"login":"rightisleft","id":3611930,"avatar_url":"https://avatars.githubusercontent.com/u/3611930?v=3","gravatar_id":"","url":"https://api.github.com/users/rightisleft","html_url":"https://github.com/rightisleft","followers_url":"https://api.github.com/users/rightisleft/followers","following_url":"https://api.github.com/users/rightisleft/following{/other_user}","gists_url":"https://api.github.com/users/rightisleft/gists{/gist_id}","starred_url":"https://api.github.com/users/rightisleft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rightisleft/subscriptions","organizations_url":"https://api.github.com/users/rightisleft/orgs","repos_url":"https://api.github.com/users/rightisleft/repos","events_url":"https://api.github.com/users/rightisleft/events{/privacy}","received_events_url":"https://api.github.com/users/rightisleft/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T01:54:10Z","updated_at":"2015-09-14T01:54:10Z","body":"I would assume that if the <input> type is number - then the value exposed to the model would also be a numeric value. "}}