{"action":"created","comment":{"url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/pulls/comments/193451519","pull_request_review_id":126426525,"id":193451519,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzQ1MTUxOQ==","diff_hunk":"@@ -0,0 +1,51 @@\n+import {\n+  ComponentFactoryResolver,\n+  ComponentRef,\n+  Directive,\n+  Input,\n+  OnChanges,\n+  OnInit,\n+  ViewContainerRef,\n+} from '@angular/core';\n+\n+@Directive({\n+  selector: '[appDynamicComponent]',\n+})\n+export class DynamicComponentDirective implements OnChanges, OnInit {\n+\n+  @Input()\n+  public appDynamicComponent: any;\n+\n+  @Input()\n+  public appDynamicComponentProperties: any[];\n+\n+  private component: ComponentRef<any>;\n+\n+  constructor(\n+    private resolver: ComponentFactoryResolver,\n+    private container: ViewContainerRef,\n+  ) {}\n+\n+  /**\n+   * Called everytime input values change, updates component values\n+   */\n+  public ngOnChanges() { }\n+\n+  /**\n+   * Sets default values\n+   */\n+  public ngOnInit() {\n+    const component = this.resolver.resolveComponentFactory(this.appDynamicComponent);\n+    this.component = this.container.createComponent(component);\n+\n+    if (this.appDynamicComponentProperties) {\n+      this.appDynamicComponentProperties.forEach((property) => {\n+        if (property.anotationType === '@Output()') {\n+          this.component.instance[property.name].subscribe(property.value);\n+        } else {\n+          this.component.instance[property.name] = property.value;\n+        }\n+      });\n+    }\n+  }\n+}","path":"src/app/components/dynamic-component/dynamic-component.directive.ts","position":45,"original_position":51,"commit_id":"51f541a8c1dd75a4d1633aaf50953d15dcd583ed","original_commit_id":"e3d8c6e6264636efb4688f9ca1c3c47c03767beb","user":{"login":"EdisonKleeen","id":38679009,"node_id":"MDQ6VXNlcjM4Njc5MDA5","avatar_url":"https://avatars1.githubusercontent.com/u/38679009?v=4","gravatar_id":"","url":"https://api.github.com/users/EdisonKleeen","html_url":"https://github.com/EdisonKleeen","followers_url":"https://api.github.com/users/EdisonKleeen/followers","following_url":"https://api.github.com/users/EdisonKleeen/following{/other_user}","gists_url":"https://api.github.com/users/EdisonKleeen/gists{/gist_id}","starred_url":"https://api.github.com/users/EdisonKleeen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdisonKleeen/subscriptions","organizations_url":"https://api.github.com/users/EdisonKleeen/orgs","repos_url":"https://api.github.com/users/EdisonKleeen/repos","events_url":"https://api.github.com/users/EdisonKleeen/events{/privacy}","received_events_url":"https://api.github.com/users/EdisonKleeen/received_events","type":"User","site_admin":false},"body":"Yes, I have an idea now. I'm going to make the change and that would help to use the \"builder\" in other components and directives","created_at":"2018-06-06T15:21:52Z","updated_at":"2018-06-06T15:21:52Z","html_url":"https://github.com/KLEEEN-SOFTWARE/KUI-Framework/pull/18#discussion_r193451519","pull_request_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/pulls/18","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/pulls/comments/193451519"},"html":{"href":"https://github.com/KLEEEN-SOFTWARE/KUI-Framework/pull/18#discussion_r193451519"},"pull_request":{"href":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/pulls/18"}},"in_reply_to_id":193415389},"pull_request":{"url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/pulls/18","id":192853728,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyODUzNzI4","html_url":"https://github.com/KLEEEN-SOFTWARE/KUI-Framework/pull/18","diff_url":"https://github.com/KLEEEN-SOFTWARE/KUI-Framework/pull/18.diff","patch_url":"https://github.com/KLEEEN-SOFTWARE/KUI-Framework/pull/18.patch","issue_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/issues/18","number":18,"state":"open","locked":false,"title":"KUIF-82 Automate component docs","user":{"login":"EdisonKleeen","id":38679009,"node_id":"MDQ6VXNlcjM4Njc5MDA5","avatar_url":"https://avatars1.githubusercontent.com/u/38679009?v=4","gravatar_id":"","url":"https://api.github.com/users/EdisonKleeen","html_url":"https://github.com/EdisonKleeen","followers_url":"https://api.github.com/users/EdisonKleeen/followers","following_url":"https://api.github.com/users/EdisonKleeen/following{/other_user}","gists_url":"https://api.github.com/users/EdisonKleeen/gists{/gist_id}","starred_url":"https://api.github.com/users/EdisonKleeen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdisonKleeen/subscriptions","organizations_url":"https://api.github.com/users/EdisonKleeen/orgs","repos_url":"https://api.github.com/users/EdisonKleeen/repos","events_url":"https://api.github.com/users/EdisonKleeen/events{/privacy}","received_events_url":"https://api.github.com/users/EdisonKleeen/received_events","type":"User","site_admin":false},"body":"*Changes*:\r\n- Add components to public api\r\n- Created a dynamic component directive to generate the components in a dynamic way for documentation\r\n- Updated docs model\r\n- Updated app component view to use the dynamic directive","created_at":"2018-06-05T22:28:41Z","updated_at":"2018-06-06T15:21:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf0c2182f071d453b0c7de56b8b62132d1fddfaf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/pulls/18/commits","review_comments_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/pulls/18/comments","review_comment_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/issues/18/comments","statuses_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/statuses/51f541a8c1dd75a4d1633aaf50953d15dcd583ed","head":{"label":"KLEEEN-SOFTWARE:feature/KUIF-82","ref":"feature/KUIF-82","sha":"51f541a8c1dd75a4d1633aaf50953d15dcd583ed","user":{"login":"KLEEEN-SOFTWARE","id":38677863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4Njc3ODYz","avatar_url":"https://avatars0.githubusercontent.com/u/38677863?v=4","gravatar_id":"","url":"https://api.github.com/users/KLEEEN-SOFTWARE","html_url":"https://github.com/KLEEEN-SOFTWARE","followers_url":"https://api.github.com/users/KLEEEN-SOFTWARE/followers","following_url":"https://api.github.com/users/KLEEEN-SOFTWARE/following{/other_user}","gists_url":"https://api.github.com/users/KLEEEN-SOFTWARE/gists{/gist_id}","starred_url":"https://api.github.com/users/KLEEEN-SOFTWARE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KLEEEN-SOFTWARE/subscriptions","organizations_url":"https://api.github.com/users/KLEEEN-SOFTWARE/orgs","repos_url":"https://api.github.com/users/KLEEEN-SOFTWARE/repos","events_url":"https://api.github.com/users/KLEEEN-SOFTWARE/events{/privacy}","received_events_url":"https://api.github.com/users/KLEEEN-SOFTWARE/received_events","type":"Organization","site_admin":false},"repo":{"id":134481071,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ0ODEwNzE=","name":"KUI-Framework","full_name":"KLEEEN-SOFTWARE/KUI-Framework","owner":{"login":"KLEEEN-SOFTWARE","id":38677863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4Njc3ODYz","avatar_url":"https://avatars0.githubusercontent.com/u/38677863?v=4","gravatar_id":"","url":"https://api.github.com/users/KLEEEN-SOFTWARE","html_url":"https://github.com/KLEEEN-SOFTWARE","followers_url":"https://api.github.com/users/KLEEEN-SOFTWARE/followers","following_url":"https://api.github.com/users/KLEEEN-SOFTWARE/following{/other_user}","gists_url":"https://api.github.com/users/KLEEEN-SOFTWARE/gists{/gist_id}","starred_url":"https://api.github.com/users/KLEEEN-SOFTWARE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KLEEEN-SOFTWARE/subscriptions","organizations_url":"https://api.github.com/users/KLEEEN-SOFTWARE/orgs","repos_url":"https://api.github.com/users/KLEEEN-SOFTWARE/repos","events_url":"https://api.github.com/users/KLEEEN-SOFTWARE/events{/privacy}","received_events_url":"https://api.github.com/users/KLEEEN-SOFTWARE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KLEEEN-SOFTWARE/KUI-Framework","description":"KleeenUI Framework","fork":false,"url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework","forks_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/forks","keys_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/teams","hooks_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/hooks","issue_events_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/issues/events{/number}","events_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/events","assignees_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/assignees{/user}","branches_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/branches{/branch}","tags_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/tags","blobs_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/statuses/{sha}","languages_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/languages","stargazers_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/stargazers","contributors_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/contributors","subscribers_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/subscribers","subscription_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/subscription","commits_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/contents/{+path}","compare_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/merges","archive_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/downloads","issues_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/issues{/number}","pulls_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/pulls{/number}","milestones_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/milestones{/number}","notifications_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/labels{/name}","releases_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/releases{/id}","deployments_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/deployments","created_at":"2018-05-22T22:07:43Z","updated_at":"2018-05-23T20:25:52Z","pushed_at":"2018-06-06T14:56:54Z","git_url":"git://github.com/KLEEEN-SOFTWARE/KUI-Framework.git","ssh_url":"git@github.com:KLEEEN-SOFTWARE/KUI-Framework.git","clone_url":"https://github.com/KLEEEN-SOFTWARE/KUI-Framework.git","svn_url":"https://github.com/KLEEEN-SOFTWARE/KUI-Framework","homepage":null,"size":161,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"KLEEEN-SOFTWARE:develop","ref":"develop","sha":"20c59eb83a0a0b28ec527d804ab07b6e453b9800","user":{"login":"KLEEEN-SOFTWARE","id":38677863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4Njc3ODYz","avatar_url":"https://avatars0.githubusercontent.com/u/38677863?v=4","gravatar_id":"","url":"https://api.github.com/users/KLEEEN-SOFTWARE","html_url":"https://github.com/KLEEEN-SOFTWARE","followers_url":"https://api.github.com/users/KLEEEN-SOFTWARE/followers","following_url":"https://api.github.com/users/KLEEEN-SOFTWARE/following{/other_user}","gists_url":"https://api.github.com/users/KLEEEN-SOFTWARE/gists{/gist_id}","starred_url":"https://api.github.com/users/KLEEEN-SOFTWARE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KLEEEN-SOFTWARE/subscriptions","organizations_url":"https://api.github.com/users/KLEEEN-SOFTWARE/orgs","repos_url":"https://api.github.com/users/KLEEEN-SOFTWARE/repos","events_url":"https://api.github.com/users/KLEEEN-SOFTWARE/events{/privacy}","received_events_url":"https://api.github.com/users/KLEEEN-SOFTWARE/received_events","type":"Organization","site_admin":false},"repo":{"id":134481071,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ0ODEwNzE=","name":"KUI-Framework","full_name":"KLEEEN-SOFTWARE/KUI-Framework","owner":{"login":"KLEEEN-SOFTWARE","id":38677863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4Njc3ODYz","avatar_url":"https://avatars0.githubusercontent.com/u/38677863?v=4","gravatar_id":"","url":"https://api.github.com/users/KLEEEN-SOFTWARE","html_url":"https://github.com/KLEEEN-SOFTWARE","followers_url":"https://api.github.com/users/KLEEEN-SOFTWARE/followers","following_url":"https://api.github.com/users/KLEEEN-SOFTWARE/following{/other_user}","gists_url":"https://api.github.com/users/KLEEEN-SOFTWARE/gists{/gist_id}","starred_url":"https://api.github.com/users/KLEEEN-SOFTWARE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KLEEEN-SOFTWARE/subscriptions","organizations_url":"https://api.github.com/users/KLEEEN-SOFTWARE/orgs","repos_url":"https://api.github.com/users/KLEEEN-SOFTWARE/repos","events_url":"https://api.github.com/users/KLEEEN-SOFTWARE/events{/privacy}","received_events_url":"https://api.github.com/users/KLEEEN-SOFTWARE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KLEEEN-SOFTWARE/KUI-Framework","description":"KleeenUI Framework","fork":false,"url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework","forks_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/forks","keys_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/teams","hooks_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/hooks","issue_events_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/issues/events{/number}","events_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/events","assignees_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/assignees{/user}","branches_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/branches{/branch}","tags_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/tags","blobs_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/statuses/{sha}","languages_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/languages","stargazers_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/stargazers","contributors_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/contributors","subscribers_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/subscribers","subscription_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/subscription","commits_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/contents/{+path}","compare_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/merges","archive_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/downloads","issues_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/issues{/number}","pulls_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/pulls{/number}","milestones_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/milestones{/number}","notifications_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/labels{/name}","releases_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/releases{/id}","deployments_url":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/deployments","created_at":"2018-05-22T22:07:43Z","updated_at":"2018-05-23T20:25:52Z","pushed_at":"2018-06-06T14:56:54Z","git_url":"git://github.com/KLEEEN-SOFTWARE/KUI-Framework.git","ssh_url":"git@github.com:KLEEEN-SOFTWARE/KUI-Framework.git","clone_url":"https://github.com/KLEEEN-SOFTWARE/KUI-Framework.git","svn_url":"https://github.com/KLEEEN-SOFTWARE/KUI-Framework","homepage":null,"size":161,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/pulls/18"},"html":{"href":"https://github.com/KLEEEN-SOFTWARE/KUI-Framework/pull/18"},"issue":{"href":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/issues/18"},"comments":{"href":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/KLEEEN-SOFTWARE/KUI-Framework/statuses/51f541a8c1dd75a4d1633aaf50953d15dcd583ed"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"EdisonKleeen"}}