{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/362","repository_url":"https://api.github.com/repos/NativeScript/nativescript-angular","labels_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/362/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/362/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/362/events","html_url":"https://github.com/NativeScript/nativescript-angular/issues/362","id":166876743,"number":362,"title":"how to set 'Page' level properties in angular component","user":{"login":"BenevidesLecontes","id":1839361,"avatar_url":"https://avatars.githubusercontent.com/u/1839361?v=3","gravatar_id":"","url":"https://api.github.com/users/BenevidesLecontes","html_url":"https://github.com/BenevidesLecontes","followers_url":"https://api.github.com/users/BenevidesLecontes/followers","following_url":"https://api.github.com/users/BenevidesLecontes/following{/other_user}","gists_url":"https://api.github.com/users/BenevidesLecontes/gists{/gist_id}","starred_url":"https://api.github.com/users/BenevidesLecontes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenevidesLecontes/subscriptions","organizations_url":"https://api.github.com/users/BenevidesLecontes/orgs","repos_url":"https://api.github.com/users/BenevidesLecontes/repos","events_url":"https://api.github.com/users/BenevidesLecontes/events{/privacy}","received_events_url":"https://api.github.com/users/BenevidesLecontes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"vakrilov","id":4092076,"avatar_url":"https://avatars.githubusercontent.com/u/4092076?v=3","gravatar_id":"","url":"https://api.github.com/users/vakrilov","html_url":"https://github.com/vakrilov","followers_url":"https://api.github.com/users/vakrilov/followers","following_url":"https://api.github.com/users/vakrilov/following{/other_user}","gists_url":"https://api.github.com/users/vakrilov/gists{/gist_id}","starred_url":"https://api.github.com/users/vakrilov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vakrilov/subscriptions","organizations_url":"https://api.github.com/users/vakrilov/orgs","repos_url":"https://api.github.com/users/vakrilov/repos","events_url":"https://api.github.com/users/vakrilov/events{/privacy}","received_events_url":"https://api.github.com/users/vakrilov/received_events","type":"User","site_admin":false},"assignees":[{"login":"vakrilov","id":4092076,"avatar_url":"https://avatars.githubusercontent.com/u/4092076?v=3","gravatar_id":"","url":"https://api.github.com/users/vakrilov","html_url":"https://github.com/vakrilov","followers_url":"https://api.github.com/users/vakrilov/followers","following_url":"https://api.github.com/users/vakrilov/following{/other_user}","gists_url":"https://api.github.com/users/vakrilov/gists{/gist_id}","starred_url":"https://api.github.com/users/vakrilov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vakrilov/subscriptions","organizations_url":"https://api.github.com/users/vakrilov/orgs","repos_url":"https://api.github.com/users/vakrilov/repos","events_url":"https://api.github.com/users/vakrilov/events{/privacy}","received_events_url":"https://api.github.com/users/vakrilov/received_events","type":"User","site_admin":false}],"milestone":null,"comments":11,"created_at":"2016-07-21T17:40:25Z","updated_at":"2016-08-02T13:21:42Z","closed_at":"2016-07-27T07:48:35Z","body":"Hi! i'm using angular2-seed-advanced, web + mobile with angular+nativescript, i'm trying to set my background sitting under statusbar using opaqueTokens, but somehow it don't work. My code:\r\nToken.ts\r\n```\r\nimport {OpaqueToken} from '@angular/core';\r\nexport const PAGE: OpaqueToken = new OpaqueToken('page');\r\n```\r\n\r\nApp.ts\r\n```\r\nnativeScriptBootstrap(NSAppComponent, [\r\n    provide(WindowService, {useClass: WindowNative}),\r\n    provide(PAGE, {useClass: Page}),\r\n    ModalNative,\r\n    provide(HttpService, {useClass: NSHttpService}),\r\n    provide(TranslateLoader, {\r\n        useFactory: () => {\r\n            return new TNSTranslateLoader('assets/i18n');\r\n        }\r\n    }),\r\n    NS_APP_PROVIDERS,\r\n    nsProvideRouter(routes, {enableTracing: false})\r\n]);\r\n```\r\n\r\nmyComponent.ts\r\n```\r\nconstructor(@Inject (PAGE) private page:PAGE) {\r\n        if (CoreConfigService.IS_MOBILE_NATIVE) {\r\n            console.log(this.page.ios);\r\n            this.page.actionBarHidden = true;\r\n            this.page.backgroundSpanUnderStatusBar=true;\r\n            this.page.backgroundImage = this.page.ios ? \"res://bg_login.jpg\" : \"res://bg_login\";\r\n        }\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/comments/236901928","html_url":"https://github.com/NativeScript/nativescript-angular/issues/362#issuecomment-236901928","issue_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/362","id":236901928,"user":{"login":"BenevidesLecontes","id":1839361,"avatar_url":"https://avatars.githubusercontent.com/u/1839361?v=3","gravatar_id":"","url":"https://api.github.com/users/BenevidesLecontes","html_url":"https://github.com/BenevidesLecontes","followers_url":"https://api.github.com/users/BenevidesLecontes/followers","following_url":"https://api.github.com/users/BenevidesLecontes/following{/other_user}","gists_url":"https://api.github.com/users/BenevidesLecontes/gists{/gist_id}","starred_url":"https://api.github.com/users/BenevidesLecontes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenevidesLecontes/subscriptions","organizations_url":"https://api.github.com/users/BenevidesLecontes/orgs","repos_url":"https://api.github.com/users/BenevidesLecontes/repos","events_url":"https://api.github.com/users/BenevidesLecontes/events{/privacy}","received_events_url":"https://api.github.com/users/BenevidesLecontes/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T13:21:42Z","updated_at":"2016-08-02T13:21:42Z","body":"That save me days!"}}
{"actor":{"display_login":"BenevidesLecontes"}}