{"action":"created","comment":{"url":"https://api.github.com/repos/formly-js/ngx-formly/pulls/comments/183880082","pull_request_review_id":114965470,"id":183880082,"diff_hunk":"@@ -156,6 +156,7 @@ export class FormlyForm implements DoCheck, OnChanges, OnDestroy {\n     this.initializeFormValue(this.form);\n     (<FormGroup> this.form).patchValue(model, { onlySelf: true });\n     this.trackModelChanges(this.fields);\n+    this.fields.forEach((field) => field.model = model);","path":"src/core/src/components/formly.form.ts","position":4,"original_position":4,"commit_id":"4ac7dd6b9daa6c7c6c038ec659abb94491850bd9","original_commit_id":"4ac7dd6b9daa6c7c6c038ec659abb94491850bd9","user":{"login":"aitboudad","id":1753742,"avatar_url":"https://avatars2.githubusercontent.com/u/1753742?v=4","gravatar_id":"","url":"https://api.github.com/users/aitboudad","html_url":"https://github.com/aitboudad","followers_url":"https://api.github.com/users/aitboudad/followers","following_url":"https://api.github.com/users/aitboudad/following{/other_user}","gists_url":"https://api.github.com/users/aitboudad/gists{/gist_id}","starred_url":"https://api.github.com/users/aitboudad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aitboudad/subscriptions","organizations_url":"https://api.github.com/users/aitboudad/orgs","repos_url":"https://api.github.com/users/aitboudad/repos","events_url":"https://api.github.com/users/aitboudad/events{/privacy}","received_events_url":"https://api.github.com/users/aitboudad/received_events","type":"User","site_admin":false},"body":"it will be set if it has `fieldArray`\r\n\r\n> Only place need to set is in the else statement?\r\n\r\nyep","created_at":"2018-04-24T21:08:26Z","updated_at":"2018-04-24T21:08:26Z","html_url":"https://github.com/formly-js/ngx-formly/pull/911#discussion_r183880082","pull_request_url":"https://api.github.com/repos/formly-js/ngx-formly/pulls/911","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/formly-js/ngx-formly/pulls/comments/183880082"},"html":{"href":"https://github.com/formly-js/ngx-formly/pull/911#discussion_r183880082"},"pull_request":{"href":"https://api.github.com/repos/formly-js/ngx-formly/pulls/911"}},"in_reply_to_id":183874184},"pull_request":{"url":"https://api.github.com/repos/formly-js/ngx-formly/pulls/911","id":183845885,"html_url":"https://github.com/formly-js/ngx-formly/pull/911","diff_url":"https://github.com/formly-js/ngx-formly/pull/911.diff","patch_url":"https://github.com/formly-js/ngx-formly/pull/911.patch","issue_url":"https://api.github.com/repos/formly-js/ngx-formly/issues/911","number":911,"state":"open","locked":false,"title":"feat(core) Ngx formly model to field","user":{"login":"thorgod","id":13910170,"avatar_url":"https://avatars3.githubusercontent.com/u/13910170?v=4","gravatar_id":"","url":"https://api.github.com/users/thorgod","html_url":"https://github.com/thorgod","followers_url":"https://api.github.com/users/thorgod/followers","following_url":"https://api.github.com/users/thorgod/following{/other_user}","gists_url":"https://api.github.com/users/thorgod/gists{/gist_id}","starred_url":"https://api.github.com/users/thorgod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorgod/subscriptions","organizations_url":"https://api.github.com/users/thorgod/orgs","repos_url":"https://api.github.com/users/thorgod/repos","events_url":"https://api.github.com/users/thorgod/events{/privacy}","received_events_url":"https://api.github.com/users/thorgod/received_events","type":"User","site_admin":false},"body":"**What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)**\r\n\r\nThis adds model to field so that it can be exposed when referencing the field.\r\n\r\n**What is the current behavior? (You can also link to an open issue here)**\r\n\r\nThe model is not apart of the fieldconfig currently. I need it in the validation so I can compare hidden values.\r\n\r\n\r\n\r\n\r\n\r\n**Please check if the PR fulfills these requirements**\r\n- [X] The commit messages follow our guidelines: https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format\r\n- [X] A unit test has been written for this change.\r\n- [X] Running `npm run build` produced a successful build. (Unit testing can be done by running `npm test`;)\r\n- [X] My code has been linted. (`npm run lint` to do this. `npm run build` will fail if there are files not linted.)\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/formly-js/ngx-formly/911)\n<!-- Reviewable:end -->\n","created_at":"2018-04-24T19:53:40Z","updated_at":"2018-04-24T21:08:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e80e7caacaf8ba2ce087df642025d772ba7c2cba","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/formly-js/ngx-formly/pulls/911/commits","review_comments_url":"https://api.github.com/repos/formly-js/ngx-formly/pulls/911/comments","review_comment_url":"https://api.github.com/repos/formly-js/ngx-formly/pulls/comments{/number}","comments_url":"https://api.github.com/repos/formly-js/ngx-formly/issues/911/comments","statuses_url":"https://api.github.com/repos/formly-js/ngx-formly/statuses/4ac7dd6b9daa6c7c6c038ec659abb94491850bd9","head":{"label":"thorgod:ngx-formly-model-to-field","ref":"ngx-formly-model-to-field","sha":"4ac7dd6b9daa6c7c6c038ec659abb94491850bd9","user":{"login":"thorgod","id":13910170,"avatar_url":"https://avatars3.githubusercontent.com/u/13910170?v=4","gravatar_id":"","url":"https://api.github.com/users/thorgod","html_url":"https://github.com/thorgod","followers_url":"https://api.github.com/users/thorgod/followers","following_url":"https://api.github.com/users/thorgod/following{/other_user}","gists_url":"https://api.github.com/users/thorgod/gists{/gist_id}","starred_url":"https://api.github.com/users/thorgod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorgod/subscriptions","organizations_url":"https://api.github.com/users/thorgod/orgs","repos_url":"https://api.github.com/users/thorgod/repos","events_url":"https://api.github.com/users/thorgod/events{/privacy}","received_events_url":"https://api.github.com/users/thorgod/received_events","type":"User","site_admin":false},"repo":{"id":130757954,"name":"ngx-formly","full_name":"thorgod/ngx-formly","owner":{"login":"thorgod","id":13910170,"avatar_url":"https://avatars3.githubusercontent.com/u/13910170?v=4","gravatar_id":"","url":"https://api.github.com/users/thorgod","html_url":"https://github.com/thorgod","followers_url":"https://api.github.com/users/thorgod/followers","following_url":"https://api.github.com/users/thorgod/following{/other_user}","gists_url":"https://api.github.com/users/thorgod/gists{/gist_id}","starred_url":"https://api.github.com/users/thorgod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorgod/subscriptions","organizations_url":"https://api.github.com/users/thorgod/orgs","repos_url":"https://api.github.com/users/thorgod/repos","events_url":"https://api.github.com/users/thorgod/events{/privacy}","received_events_url":"https://api.github.com/users/thorgod/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thorgod/ngx-formly","description":"JSON powered / Dynamic forms in Angular","fork":true,"url":"https://api.github.com/repos/thorgod/ngx-formly","forks_url":"https://api.github.com/repos/thorgod/ngx-formly/forks","keys_url":"https://api.github.com/repos/thorgod/ngx-formly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thorgod/ngx-formly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thorgod/ngx-formly/teams","hooks_url":"https://api.github.com/repos/thorgod/ngx-formly/hooks","issue_events_url":"https://api.github.com/repos/thorgod/ngx-formly/issues/events{/number}","events_url":"https://api.github.com/repos/thorgod/ngx-formly/events","assignees_url":"https://api.github.com/repos/thorgod/ngx-formly/assignees{/user}","branches_url":"https://api.github.com/repos/thorgod/ngx-formly/branches{/branch}","tags_url":"https://api.github.com/repos/thorgod/ngx-formly/tags","blobs_url":"https://api.github.com/repos/thorgod/ngx-formly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thorgod/ngx-formly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thorgod/ngx-formly/git/refs{/sha}","trees_url":"https://api.github.com/repos/thorgod/ngx-formly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thorgod/ngx-formly/statuses/{sha}","languages_url":"https://api.github.com/repos/thorgod/ngx-formly/languages","stargazers_url":"https://api.github.com/repos/thorgod/ngx-formly/stargazers","contributors_url":"https://api.github.com/repos/thorgod/ngx-formly/contributors","subscribers_url":"https://api.github.com/repos/thorgod/ngx-formly/subscribers","subscription_url":"https://api.github.com/repos/thorgod/ngx-formly/subscription","commits_url":"https://api.github.com/repos/thorgod/ngx-formly/commits{/sha}","git_commits_url":"https://api.github.com/repos/thorgod/ngx-formly/git/commits{/sha}","comments_url":"https://api.github.com/repos/thorgod/ngx-formly/comments{/number}","issue_comment_url":"https://api.github.com/repos/thorgod/ngx-formly/issues/comments{/number}","contents_url":"https://api.github.com/repos/thorgod/ngx-formly/contents/{+path}","compare_url":"https://api.github.com/repos/thorgod/ngx-formly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thorgod/ngx-formly/merges","archive_url":"https://api.github.com/repos/thorgod/ngx-formly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thorgod/ngx-formly/downloads","issues_url":"https://api.github.com/repos/thorgod/ngx-formly/issues{/number}","pulls_url":"https://api.github.com/repos/thorgod/ngx-formly/pulls{/number}","milestones_url":"https://api.github.com/repos/thorgod/ngx-formly/milestones{/number}","notifications_url":"https://api.github.com/repos/thorgod/ngx-formly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thorgod/ngx-formly/labels{/name}","releases_url":"https://api.github.com/repos/thorgod/ngx-formly/releases{/id}","deployments_url":"https://api.github.com/repos/thorgod/ngx-formly/deployments","created_at":"2018-04-23T21:18:26Z","updated_at":"2018-04-23T21:21:48Z","pushed_at":"2018-04-24T20:45:11Z","git_url":"git://github.com/thorgod/ngx-formly.git","ssh_url":"git@github.com:thorgod/ngx-formly.git","clone_url":"https://github.com/thorgod/ngx-formly.git","svn_url":"https://github.com/thorgod/ngx-formly","homepage":"https://formly-js.github.io/ngx-formly","size":7230,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"formly-js:master","ref":"master","sha":"6779278680d621b6df6db5411725591fd36dcefc","user":{"login":"formly-js","id":8561755,"avatar_url":"https://avatars3.githubusercontent.com/u/8561755?v=4","gravatar_id":"","url":"https://api.github.com/users/formly-js","html_url":"https://github.com/formly-js","followers_url":"https://api.github.com/users/formly-js/followers","following_url":"https://api.github.com/users/formly-js/following{/other_user}","gists_url":"https://api.github.com/users/formly-js/gists{/gist_id}","starred_url":"https://api.github.com/users/formly-js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/formly-js/subscriptions","organizations_url":"https://api.github.com/users/formly-js/orgs","repos_url":"https://api.github.com/users/formly-js/repos","events_url":"https://api.github.com/users/formly-js/events{/privacy}","received_events_url":"https://api.github.com/users/formly-js/received_events","type":"Organization","site_admin":false},"repo":{"id":33647441,"name":"ngx-formly","full_name":"formly-js/ngx-formly","owner":{"login":"formly-js","id":8561755,"avatar_url":"https://avatars3.githubusercontent.com/u/8561755?v=4","gravatar_id":"","url":"https://api.github.com/users/formly-js","html_url":"https://github.com/formly-js","followers_url":"https://api.github.com/users/formly-js/followers","following_url":"https://api.github.com/users/formly-js/following{/other_user}","gists_url":"https://api.github.com/users/formly-js/gists{/gist_id}","starred_url":"https://api.github.com/users/formly-js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/formly-js/subscriptions","organizations_url":"https://api.github.com/users/formly-js/orgs","repos_url":"https://api.github.com/users/formly-js/repos","events_url":"https://api.github.com/users/formly-js/events{/privacy}","received_events_url":"https://api.github.com/users/formly-js/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/formly-js/ngx-formly","description":"JSON powered / Dynamic forms in Angular","fork":false,"url":"https://api.github.com/repos/formly-js/ngx-formly","forks_url":"https://api.github.com/repos/formly-js/ngx-formly/forks","keys_url":"https://api.github.com/repos/formly-js/ngx-formly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/formly-js/ngx-formly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/formly-js/ngx-formly/teams","hooks_url":"https://api.github.com/repos/formly-js/ngx-formly/hooks","issue_events_url":"https://api.github.com/repos/formly-js/ngx-formly/issues/events{/number}","events_url":"https://api.github.com/repos/formly-js/ngx-formly/events","assignees_url":"https://api.github.com/repos/formly-js/ngx-formly/assignees{/user}","branches_url":"https://api.github.com/repos/formly-js/ngx-formly/branches{/branch}","tags_url":"https://api.github.com/repos/formly-js/ngx-formly/tags","blobs_url":"https://api.github.com/repos/formly-js/ngx-formly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/formly-js/ngx-formly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/formly-js/ngx-formly/git/refs{/sha}","trees_url":"https://api.github.com/repos/formly-js/ngx-formly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/formly-js/ngx-formly/statuses/{sha}","languages_url":"https://api.github.com/repos/formly-js/ngx-formly/languages","stargazers_url":"https://api.github.com/repos/formly-js/ngx-formly/stargazers","contributors_url":"https://api.github.com/repos/formly-js/ngx-formly/contributors","subscribers_url":"https://api.github.com/repos/formly-js/ngx-formly/subscribers","subscription_url":"https://api.github.com/repos/formly-js/ngx-formly/subscription","commits_url":"https://api.github.com/repos/formly-js/ngx-formly/commits{/sha}","git_commits_url":"https://api.github.com/repos/formly-js/ngx-formly/git/commits{/sha}","comments_url":"https://api.github.com/repos/formly-js/ngx-formly/comments{/number}","issue_comment_url":"https://api.github.com/repos/formly-js/ngx-formly/issues/comments{/number}","contents_url":"https://api.github.com/repos/formly-js/ngx-formly/contents/{+path}","compare_url":"https://api.github.com/repos/formly-js/ngx-formly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/formly-js/ngx-formly/merges","archive_url":"https://api.github.com/repos/formly-js/ngx-formly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/formly-js/ngx-formly/downloads","issues_url":"https://api.github.com/repos/formly-js/ngx-formly/issues{/number}","pulls_url":"https://api.github.com/repos/formly-js/ngx-formly/pulls{/number}","milestones_url":"https://api.github.com/repos/formly-js/ngx-formly/milestones{/number}","notifications_url":"https://api.github.com/repos/formly-js/ngx-formly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/formly-js/ngx-formly/labels{/name}","releases_url":"https://api.github.com/repos/formly-js/ngx-formly/releases{/id}","deployments_url":"https://api.github.com/repos/formly-js/ngx-formly/deployments","created_at":"2015-04-09T03:58:53Z","updated_at":"2018-04-24T19:42:37Z","pushed_at":"2018-04-24T20:56:43Z","git_url":"git://github.com/formly-js/ngx-formly.git","ssh_url":"git@github.com:formly-js/ngx-formly.git","clone_url":"https://github.com/formly-js/ngx-formly.git","svn_url":"https://github.com/formly-js/ngx-formly","homepage":"https://formly-js.github.io/ngx-formly","size":7358,"stargazers_count":417,"watchers_count":417,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":126,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":126,"open_issues":23,"watchers":417,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/formly-js/ngx-formly/pulls/911"},"html":{"href":"https://github.com/formly-js/ngx-formly/pull/911"},"issue":{"href":"https://api.github.com/repos/formly-js/ngx-formly/issues/911"},"comments":{"href":"https://api.github.com/repos/formly-js/ngx-formly/issues/911/comments"},"review_comments":{"href":"https://api.github.com/repos/formly-js/ngx-formly/pulls/911/comments"},"review_comment":{"href":"https://api.github.com/repos/formly-js/ngx-formly/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/formly-js/ngx-formly/pulls/911/commits"},"statuses":{"href":"https://api.github.com/repos/formly-js/ngx-formly/statuses/4ac7dd6b9daa6c7c6c038ec659abb94491850bd9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"aitboudad"}}