{"action":"created","issue":{"url":"https://api.github.com/repos/arkon/ng-inline-svg/issues/70","repository_url":"https://api.github.com/repos/arkon/ng-inline-svg","labels_url":"https://api.github.com/repos/arkon/ng-inline-svg/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/arkon/ng-inline-svg/issues/70/comments","events_url":"https://api.github.com/repos/arkon/ng-inline-svg/issues/70/events","html_url":"https://github.com/arkon/ng-inline-svg/issues/70","id":317558616,"number":70,"title":"onSVGLoaded","user":{"login":"zygimantas","id":102076,"avatar_url":"https://avatars0.githubusercontent.com/u/102076?v=4","gravatar_id":"","url":"https://api.github.com/users/zygimantas","html_url":"https://github.com/zygimantas","followers_url":"https://api.github.com/users/zygimantas/followers","following_url":"https://api.github.com/users/zygimantas/following{/other_user}","gists_url":"https://api.github.com/users/zygimantas/gists{/gist_id}","starred_url":"https://api.github.com/users/zygimantas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zygimantas/subscriptions","organizations_url":"https://api.github.com/users/zygimantas/orgs","repos_url":"https://api.github.com/users/zygimantas/repos","events_url":"https://api.github.com/users/zygimantas/events{/privacy}","received_events_url":"https://api.github.com/users/zygimantas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-04-25T09:58:52Z","updated_at":"2018-04-26T12:15:37Z","closed_at":null,"author_association":"NONE","body":"Based on this example https://github.com/arkon/ng-inline-svg/blob/3eae11e3b276d819c7326af3e0c1b4b8b5b647a9/demo/src/demo/demo.component.ts is it possible to call another public/private method of component from inside the handleSVG method?\r\n\r\nI am getting:\r\n\r\n```\r\ncore.js:1374 ERROR TypeError: this.setBaseColor is not a function\r\n    at InlineSVGDirective.onSVGLoaded (common-pirate.component.ts:37)\r\n    at SafeSubscriber.eval [as _next] (inline-svg.directive.js:80)\r\n    at SafeSubscriber.__tryOrUnsub (Subscriber.js:231)\r\n    at SafeSubscriber.next (Subscriber.js:179)\r\n    at Subscriber._next (Subscriber.js:122)\r\n    at Subscriber.next (Subscriber.js:86)\r\n    at MapSubscriber._next (map.js:75)\r\n    at MapSubscriber.next (Subscriber.js:86)\r\n    at RefCountSubscriber._next (Subscriber.js:122)\r\n    at RefCountSubscriber.next (Subscriber.js:86)\r\n```\r\n\r\nAnd why this new functionality is defined differently than existing \"onSVGInserted\"?\r\n\r\n[onSVGLoaded]=\"onSVGLoaded\"\r\n(onSVGInserted)=\"onSVGInserted($event)\"?\r\n\r\n\r\n\"this\" is InlineSVGDirective inside handleSVG(svgElement: SVGElement), so how to reference the component?"},"comment":{"url":"https://api.github.com/repos/arkon/ng-inline-svg/issues/comments/384619382","html_url":"https://github.com/arkon/ng-inline-svg/issues/70#issuecomment-384619382","issue_url":"https://api.github.com/repos/arkon/ng-inline-svg/issues/70","id":384619382,"user":{"login":"arkon","id":4098258,"avatar_url":"https://avatars0.githubusercontent.com/u/4098258?v=4","gravatar_id":"","url":"https://api.github.com/users/arkon","html_url":"https://github.com/arkon","followers_url":"https://api.github.com/users/arkon/followers","following_url":"https://api.github.com/users/arkon/following{/other_user}","gists_url":"https://api.github.com/users/arkon/gists{/gist_id}","starred_url":"https://api.github.com/users/arkon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkon/subscriptions","organizations_url":"https://api.github.com/users/arkon/orgs","repos_url":"https://api.github.com/users/arkon/repos","events_url":"https://api.github.com/users/arkon/events{/privacy}","received_events_url":"https://api.github.com/users/arkon/received_events","type":"User","site_admin":false},"created_at":"2018-04-26T12:15:37Z","updated_at":"2018-04-26T12:15:37Z","author_association":"OWNER","body":"@cyphercodes96 Please don't post in other places to try to get someone to answer. It's literally only been 4 hours.\n\nMake sure you have the right version installed (^6.2.0). It's an input so it has to be `[onSVGLoaded]`>"}}
{"actor":{"display_login":"arkon"}}