{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-marketplace-demo/issues/243","repository_url":"https://api.github.com/repos/NativeScript/nativescript-marketplace-demo","labels_url":"https://api.github.com/repos/NativeScript/nativescript-marketplace-demo/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-marketplace-demo/issues/243/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-marketplace-demo/issues/243/events","html_url":"https://github.com/NativeScript/nativescript-marketplace-demo/issues/243","id":193338633,"number":243,"title":"Share code between components","user":{"login":"shafihuzaib","id":9165135,"avatar_url":"https://avatars3.githubusercontent.com/u/9165135?v=3","gravatar_id":"","url":"https://api.github.com/users/shafihuzaib","html_url":"https://github.com/shafihuzaib","followers_url":"https://api.github.com/users/shafihuzaib/followers","following_url":"https://api.github.com/users/shafihuzaib/following{/other_user}","gists_url":"https://api.github.com/users/shafihuzaib/gists{/gist_id}","starred_url":"https://api.github.com/users/shafihuzaib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shafihuzaib/subscriptions","organizations_url":"https://api.github.com/users/shafihuzaib/orgs","repos_url":"https://api.github.com/users/shafihuzaib/repos","events_url":"https://api.github.com/users/shafihuzaib/events{/privacy}","received_events_url":"https://api.github.com/users/shafihuzaib/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-04T08:14:40Z","updated_at":"2017-07-05T13:41:30Z","closed_at":"2017-07-05T13:41:30Z","body":"Sharing certain code between components is always necessary. For example, the `get page()` method to access the `Page` object for nativescript.\r\n\r\nActually I want the following code to be available in all the components. Can you please propose a way to do that?\r\n\r\n    protected _page: any;\r\n\r\n    protected get page() {\r\n        if (Config.PageClass) {\r\n        if (!this._page) {\r\n            this._page = this.injector.get(Config.PageClass);\r\n        }\r\n\r\n        return this._page;\r\n        }\r\n    }"},"comment":{"url":"https://api.github.com/repos/NativeScript/nativescript-marketplace-demo/issues/comments/313106265","html_url":"https://github.com/NativeScript/nativescript-marketplace-demo/issues/243#issuecomment-313106265","issue_url":"https://api.github.com/repos/NativeScript/nativescript-marketplace-demo/issues/243","id":313106265,"user":{"login":"NickIliev","id":18008302,"avatar_url":"https://avatars1.githubusercontent.com/u/18008302?v=3","gravatar_id":"","url":"https://api.github.com/users/NickIliev","html_url":"https://github.com/NickIliev","followers_url":"https://api.github.com/users/NickIliev/followers","following_url":"https://api.github.com/users/NickIliev/following{/other_user}","gists_url":"https://api.github.com/users/NickIliev/gists{/gist_id}","starred_url":"https://api.github.com/users/NickIliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickIliev/subscriptions","organizations_url":"https://api.github.com/users/NickIliev/orgs","repos_url":"https://api.github.com/users/NickIliev/repos","events_url":"https://api.github.com/users/NickIliev/events{/privacy}","received_events_url":"https://api.github.com/users/NickIliev/received_events","type":"User","site_admin":false},"created_at":"2017-07-05T13:41:30Z","updated_at":"2017-07-05T13:41:30Z","body":"clsoing this due to inactivity\r\n\r\n@sebawita please post a how-to related question in the community channels (like [this one](https://discourse.nativescript.org/)) where they would have greater visibility and a greater chance of receiving fast answers."}}
{"actor":{"display_login":"NickIliev"}}