{"action":"opened","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/485","repository_url":"https://api.github.com/repos/NativeScript/nativescript-angular","labels_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/485/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/485/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-angular/issues/485/events","html_url":"https://github.com/NativeScript/nativescript-angular/issues/485","id":180540357,"number":485,"title":"No provider for PlatformLocation!","user":{"login":"Sulman633","id":11000928,"avatar_url":"https://avatars.githubusercontent.com/u/11000928?v=3","gravatar_id":"","url":"https://api.github.com/users/Sulman633","html_url":"https://github.com/Sulman633","followers_url":"https://api.github.com/users/Sulman633/followers","following_url":"https://api.github.com/users/Sulman633/following{/other_user}","gists_url":"https://api.github.com/users/Sulman633/gists{/gist_id}","starred_url":"https://api.github.com/users/Sulman633/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sulman633/subscriptions","organizations_url":"https://api.github.com/users/Sulman633/orgs","repos_url":"https://api.github.com/users/Sulman633/repos","events_url":"https://api.github.com/users/Sulman633/events{/privacy}","received_events_url":"https://api.github.com/users/Sulman633/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-02T22:41:05Z","updated_at":"2016-10-02T22:41:05Z","closed_at":null,"body":"I am getting the following error while I am trying to implement simple routing:\r\n\r\nNo provider for PlatformLocation!\r\n\r\nError: No provider for PlatformLocation!\r\n    at NoProviderError.Error (native)\r\n    at NoProviderError.BaseError [as constructor] (/data/data/org.nativescript.nightlivefront/files/app/tns_modules/@angular/core/bundles/core.umd.js:1248:38)\r\n    at NoProviderError.AbstractProviderError [as constructor] (/data/data/org.nativescript.nightlivefront/files/app/tns_modules/@angular/core/bundles/core.umd.js:1703:20)\r\n    at new NoProviderError (/data/data/org.nativescript.nightlivefront/files/app/tns_modules/@angular/core/bundles/core.umd.js:1734:20)\r\n    at ReflectiveInjector_._throwOrNull (/data/data/org.nativescript.nightlivefront/files/app/tns_modules/@angular/core/bundles/core.umd.js:3331:23)\r\n    at ReflectiveInjector_._getByKeyDefault (/data/data/org.nativescript.nightlivefront/files/app/tns_modules/@angular/core/bundles/core.umd.js:3359:29)\r\n    at ReflectiveInjector_._getByKey (/data/data/org.nativescript.nightlivefront/files/app/tns_modules/@angular/core/bundles/core.umd.js:3322:29)\r\n    at ReflectiveInjector_.get (/data/data/org.nativescript.nightlivefront/files/app/tns_modules/@angular/core/bundles/core.umd.js:3131:25)\r\n    at NgModuleInjector.Object.defineProperty.get (AppComponentModule.ngfactory.js:104:119)\r\n    at NgModuleInjector.Object.defineProperty.get (AppComponentModule.ngfactory.js:109:84)\r\n\r\nThis error occurs when I add an array of navigatableComponents to my main.ts declarations, here is a screen shot:\r\n![maints](https://cloud.githubusercontent.com/assets/11000928/19024334/a0ecd610-88cf-11e6-98db-d31e27eebeaf.PNG)\r\n\r\nThis is what my routing file looks like:\r\n![routing](https://cloud.githubusercontent.com/assets/11000928/19024337/ad5705ce-88cf-11e6-9999-de49ff6cf36f.PNG)\r\n\r\nand finally my package.json file:\r\n![packagejson](https://cloud.githubusercontent.com/assets/11000928/19024339/b7e2a4da-88cf-11e6-905c-364cb43575a3.PNG)\r\n\r\nCould some please explain why this is happening and what the resolution is? Thank you.\r\n\r\n\r\n \r\n"}}
{"actor":{"display_login":"Sulman633"}}