{"action":"created","issue":{"url":"https://api.github.com/repos/formly-js/ngx-formly/issues/1109","repository_url":"https://api.github.com/repos/formly-js/ngx-formly","labels_url":"https://api.github.com/repos/formly-js/ngx-formly/issues/1109/labels{/name}","comments_url":"https://api.github.com/repos/formly-js/ngx-formly/issues/1109/comments","events_url":"https://api.github.com/repos/formly-js/ngx-formly/issues/1109/events","html_url":"https://github.com/formly-js/ngx-formly/issues/1109","id":349077917,"node_id":"MDU6SXNzdWUzNDkwNzc5MTc=","number":1109,"title":"Feature: callback for field/model initialisation","user":{"login":"FritzHerbers","id":10029682,"node_id":"MDQ6VXNlcjEwMDI5Njgy","avatar_url":"https://avatars1.githubusercontent.com/u/10029682?v=4","gravatar_id":"","url":"https://api.github.com/users/FritzHerbers","html_url":"https://github.com/FritzHerbers","followers_url":"https://api.github.com/users/FritzHerbers/followers","following_url":"https://api.github.com/users/FritzHerbers/following{/other_user}","gists_url":"https://api.github.com/users/FritzHerbers/gists{/gist_id}","starred_url":"https://api.github.com/users/FritzHerbers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FritzHerbers/subscriptions","organizations_url":"https://api.github.com/users/FritzHerbers/orgs","repos_url":"https://api.github.com/users/FritzHerbers/repos","events_url":"https://api.github.com/users/FritzHerbers/events{/privacy}","received_events_url":"https://api.github.com/users/FritzHerbers/received_events","type":"User","site_admin":false},"labels":[{"id":197471514,"node_id":"MDU6TGFiZWwxOTc0NzE1MTQ=","url":"https://api.github.com/repos/formly-js/ngx-formly/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-08-09T10:56:15Z","updated_at":"2018-08-11T19:03:00Z","closed_at":"2018-08-11T19:00:19Z","author_association":"NONE","body":"```\r\n[x] feature request\r\n```\r\nIt would be nice to have an initialisation callback before fields are populated. \r\nFor example:\r\n\r\n- In the Repeating Type, when model data exists, the FieldGroups are already populated, before the FieldArrayType implementation's ngOnit runs. Having a callback would simplify the code.\r\n[https://stackblitz.com/edit/angular-abr1eg?file=src/app/datatable.type.ts\r\n](https://stackblitz.com/edit/angular-abr1eg?file=src/app/datatable.type.ts\r\n)\r\n\r\n- In the Repeating Type to populate buttons.\r\n- In the Repeating Type to populate a first row in the model when no model data exists.\r\n\r\nSome of this can be done before it is handed over to formly, but I think it also makes sense to have the option to have it as near to the library as possible."},"comment":{"url":"https://api.github.com/repos/formly-js/ngx-formly/issues/comments/412295265","html_url":"https://github.com/formly-js/ngx-formly/issues/1109#issuecomment-412295265","issue_url":"https://api.github.com/repos/formly-js/ngx-formly/issues/1109","id":412295265,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjI5NTI2NQ==","user":{"login":"aitboudad","id":1753742,"node_id":"MDQ6VXNlcjE3NTM3NDI=","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},"created_at":"2018-08-11T19:03:00Z","updated_at":"2018-08-11T19:03:00Z","author_association":"MEMBER","body":"**Note**: this feature is marked as experimental for now and it may change in the nearest future so play with it and provide us you feedback before it's too late :)."}}
{"actor":{"display_login":"aitboudad"}}