{"action":"created","issue":{"url":"https://api.github.com/repos/makinacorpus/angular2-schema-form/issues/39","repository_url":"https://api.github.com/repos/makinacorpus/angular2-schema-form","labels_url":"https://api.github.com/repos/makinacorpus/angular2-schema-form/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/makinacorpus/angular2-schema-form/issues/39/comments","events_url":"https://api.github.com/repos/makinacorpus/angular2-schema-form/issues/39/events","html_url":"https://github.com/makinacorpus/angular2-schema-form/issues/39","id":191909614,"number":39,"title":"Any way to dynamically change the schema?","user":{"login":"sithwin","id":23375053,"avatar_url":"https://avatars.githubusercontent.com/u/23375053?v=3","gravatar_id":"","url":"https://api.github.com/users/sithwin","html_url":"https://github.com/sithwin","followers_url":"https://api.github.com/users/sithwin/followers","following_url":"https://api.github.com/users/sithwin/following{/other_user}","gists_url":"https://api.github.com/users/sithwin/gists{/gist_id}","starred_url":"https://api.github.com/users/sithwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sithwin/subscriptions","organizations_url":"https://api.github.com/users/sithwin/orgs","repos_url":"https://api.github.com/users/sithwin/repos","events_url":"https://api.github.com/users/sithwin/events{/privacy}","received_events_url":"https://api.github.com/users/sithwin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-28T03:01:02Z","updated_at":"2016-12-05T09:33:15Z","closed_at":null,"body":"I have dropdown list and would like to change Json Schema when it is fired the change event. \r\n\r\nPls advice!"},"comment":{"url":"https://api.github.com/repos/makinacorpus/angular2-schema-form/issues/comments/264806427","html_url":"https://github.com/makinacorpus/angular2-schema-form/issues/39#issuecomment-264806427","issue_url":"https://api.github.com/repos/makinacorpus/angular2-schema-form/issues/39","id":264806427,"user":{"login":"kianmeng-aft","id":22811886,"avatar_url":"https://avatars.githubusercontent.com/u/22811886?v=3","gravatar_id":"","url":"https://api.github.com/users/kianmeng-aft","html_url":"https://github.com/kianmeng-aft","followers_url":"https://api.github.com/users/kianmeng-aft/followers","following_url":"https://api.github.com/users/kianmeng-aft/following{/other_user}","gists_url":"https://api.github.com/users/kianmeng-aft/gists{/gist_id}","starred_url":"https://api.github.com/users/kianmeng-aft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kianmeng-aft/subscriptions","organizations_url":"https://api.github.com/users/kianmeng-aft/orgs","repos_url":"https://api.github.com/users/kianmeng-aft/repos","events_url":"https://api.github.com/users/kianmeng-aft/events{/privacy}","received_events_url":"https://api.github.com/users/kianmeng-aft/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T09:33:15Z","updated_at":"2016-12-05T09:33:15Z","body":"Hey , i am facing the same issue too.\r\n\r\nSteps to reproduce,\r\n\r\n1) Clone the demo out `https://github.com/fbessou/angular2-schema-form-demo`\r\n2) Duplicate `sampleschema.json` to `sampleschema.1.json` and remove some fields\r\n3) Add a new button`\t<button (click)=\"changeSchema()\"> Change schema </button>` in `app.component.html`\r\n4) Add new method to change schema in `app.component.ts`\r\n```\r\nchangeSchema(){\r\n\t\tthis.schema = require(\"./sampleschema.1.json\");\r\n\t}\r\n```\r\n\r\nThe final json generated on the right side, seems to change when the new button is clicked... but the UI does not change (Which is what i want)\r\n\r\nIs it suppose to work this way? Because , i will have a couple of forms, and i want it to change it dynamically.\r\n\r\nThanks in advance!"}}
{"actor":{"display_login":"kianmeng-aft"}}