{"action":"created","issue":{"url":"https://api.github.com/repos/formly-js/angular-formly/issues/524","labels_url":"https://api.github.com/repos/formly-js/angular-formly/issues/524/labels{/name}","comments_url":"https://api.github.com/repos/formly-js/angular-formly/issues/524/comments","events_url":"https://api.github.com/repos/formly-js/angular-formly/issues/524/events","html_url":"https://github.com/formly-js/angular-formly/issues/524","id":112743199,"number":524,"title":"I'm trying to add input-types (templates) at run-time","user":{"login":"iJungleboy","id":5321186,"avatar_url":"https://avatars.githubusercontent.com/u/5321186?v=3","gravatar_id":"","url":"https://api.github.com/users/iJungleboy","html_url":"https://github.com/iJungleboy","followers_url":"https://api.github.com/users/iJungleboy/followers","following_url":"https://api.github.com/users/iJungleboy/following{/other_user}","gists_url":"https://api.github.com/users/iJungleboy/gists{/gist_id}","starred_url":"https://api.github.com/users/iJungleboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iJungleboy/subscriptions","organizations_url":"https://api.github.com/users/iJungleboy/orgs","repos_url":"https://api.github.com/users/iJungleboy/repos","events_url":"https://api.github.com/users/iJungleboy/events{/privacy}","received_events_url":"https://api.github.com/users/iJungleboy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-22T07:03:48Z","updated_at":"2015-10-22T22:48:19Z","closed_at":null,"body":"I'm doing this because when the first scripts load, it's not clear yet which fields will be needed. That is only discovered once the first JSONs arrive containing the content-type-definition and the fields-list. Then I want to load the custom UIs (some are heavy, like WYSIWYGs or Google-map-pickers). \r\n\r\nBasically I just load more scripts containing more definitions like: \r\n```\r\nangular.module(\"eavFieldTemplates\")\r\n    .config(function(formlyConfigProvider, defaultFieldWrappers) {\r\n\r\n        formlyConfigProvider.setType({\r\n            name: \"custom-gps\",\r\n            templateUrl: \"fields/custom-gps/custom-gps.html\",\r\n            wrapper: defaultFieldWrappers,\r\n            controller: \"FieldTemplate-CustomGpsController\"\r\n        });\r\n    })\r\n    .controller(\"FieldTemplate-CustomGpsController\", function ($scope, $filter, $modal, appId, debugState, eavAdminDialogs) {\r\n\r\n    });\r\n```\r\n\r\nbut so far have not been successful. I assume formly doesn't re-init the possible templates-list or something - or most likely I just didn't find the right documentation. What do you think?\r\n\r\nThanks a bunch - especially for the entire formly - you rock :)!"},"comment":{"url":"https://api.github.com/repos/formly-js/angular-formly/issues/comments/150377450","html_url":"https://github.com/formly-js/angular-formly/issues/524#issuecomment-150377450","issue_url":"https://api.github.com/repos/formly-js/angular-formly/issues/524","id":150377450,"user":{"login":"iJungleboy","id":5321186,"avatar_url":"https://avatars.githubusercontent.com/u/5321186?v=3","gravatar_id":"","url":"https://api.github.com/users/iJungleboy","html_url":"https://github.com/iJungleboy","followers_url":"https://api.github.com/users/iJungleboy/followers","following_url":"https://api.github.com/users/iJungleboy/following{/other_user}","gists_url":"https://api.github.com/users/iJungleboy/gists{/gist_id}","starred_url":"https://api.github.com/users/iJungleboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iJungleboy/subscriptions","organizations_url":"https://api.github.com/users/iJungleboy/orgs","repos_url":"https://api.github.com/users/iJungleboy/repos","events_url":"https://api.github.com/users/iJungleboy/events{/privacy}","received_events_url":"https://api.github.com/users/iJungleboy/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T22:48:19Z","updated_at":"2015-10-22T22:48:19Z","body":"I'll try...thanks..."}}