{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/4306","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/4306/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/4306/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/4306/events","html_url":"https://github.com/driftyco/ionic/issues/4306","id":104324797,"number":4306,"title":"ionicPlatform doesn't help you determine if using ionic serve","user":{"login":"cfjedimaster","id":393660,"avatar_url":"https://avatars.githubusercontent.com/u/393660?v=3","gravatar_id":"","url":"https://api.github.com/users/cfjedimaster","html_url":"https://github.com/cfjedimaster","followers_url":"https://api.github.com/users/cfjedimaster/followers","following_url":"https://api.github.com/users/cfjedimaster/following{/other_user}","gists_url":"https://api.github.com/users/cfjedimaster/gists{/gist_id}","starred_url":"https://api.github.com/users/cfjedimaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfjedimaster/subscriptions","organizations_url":"https://api.github.com/users/cfjedimaster/orgs","repos_url":"https://api.github.com/users/cfjedimaster/repos","events_url":"https://api.github.com/users/cfjedimaster/events{/privacy}","received_events_url":"https://api.github.com/users/cfjedimaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-01T18:17:18Z","updated_at":"2015-09-07T03:06:01Z","closed_at":null,"body":"When using Ionic Serve, you will get a class added to your BODY (http://ionicframework.com/docs/api/utility/ionic.Platform/) that reports if you are using the browser (platform-browser). However, there is no such corresponding support for ionic.Platform (http://ionicframework.com/docs/api/utility/ionic.Platform/). Now - I tend to think adding code for the browser means you are wasting a bit of space in your production code, but it seems like if you support it in one place you should support it here too."},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/138168011","html_url":"https://github.com/driftyco/ionic/issues/4306#issuecomment-138168011","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/4306","id":138168011,"user":{"login":"cfjedimaster","id":393660,"avatar_url":"https://avatars.githubusercontent.com/u/393660?v=3","gravatar_id":"","url":"https://api.github.com/users/cfjedimaster","html_url":"https://github.com/cfjedimaster","followers_url":"https://api.github.com/users/cfjedimaster/followers","following_url":"https://api.github.com/users/cfjedimaster/following{/other_user}","gists_url":"https://api.github.com/users/cfjedimaster/gists{/gist_id}","starred_url":"https://api.github.com/users/cfjedimaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfjedimaster/subscriptions","organizations_url":"https://api.github.com/users/cfjedimaster/orgs","repos_url":"https://api.github.com/users/cfjedimaster/repos","events_url":"https://api.github.com/users/cfjedimaster/events{/privacy}","received_events_url":"https://api.github.com/users/cfjedimaster/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T03:06:01Z","updated_at":"2015-09-07T03:06:01Z","body":"So yeah - I tested, it returns false in the browser, as expected by the docs."}}