{"id":30456466,"url":"https://github.com/paulrosset/ngshowon","last_synced_at":"2026-04-20T19:31:26.316Z","repository":{"id":58224350,"uuid":"80526223","full_name":"PaulRosset/ngshowon","owner":"PaulRosset","description":"A simple angular directive to show/hide element according to the size of the window.","archived":false,"fork":false,"pushed_at":"2017-01-31T14:16:37.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-01T06:03:51.246Z","etag":null,"topics":["angular","directives"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PaulRosset.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-31T14:12:33.000Z","updated_at":"2017-04-21T20:43:29.000Z","dependencies_parsed_at":"2022-08-31T04:10:28.097Z","dependency_job_id":null,"html_url":"https://github.com/PaulRosset/ngshowon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PaulRosset/ngshowon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulRosset%2Fngshowon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulRosset%2Fngshowon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulRosset%2Fngshowon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulRosset%2Fngshowon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PaulRosset","download_url":"https://codeload.github.com/PaulRosset/ngshowon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulRosset%2Fngshowon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271755686,"owners_count":24815459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","directives"],"created_at":"2025-08-23T16:33:10.653Z","updated_at":"2026-04-20T19:31:26.280Z","avatar_url":"https://github.com/PaulRosset.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Directive ngShowOn\n\nA simple angular directive to show/hide element according to the size of the window.\n\n## Getting Started\n\n### Installing\n\nYou can install it via bower with :\n\n```\nbower install ngshowon\n```\n\nor just clone the project on github :\n\n```\nhttps://github.com/PaulRosset/ngshowon.git\n```\n\n### Prerequisites\n\nOnce download, Include the file :\n\n```\n...\n  \u003cscript src=\"path/to/the/file/ngShowOn.min.js\"\u003e\u003c/script\u003e\n...\n```\n\nand integrate it in your main module angular as dependencies :\n\n```\nvar myApp = angular.module('myApp', ['ngShowOn']);\n```\n\n### Example of use\n\nNow, you can use as you want on any html element like this :\n\n```\n\u003ch1 ng-show-on=\"tablet\"\u003eHello World\u003c/h1\u003e\n```\n\nIn this example the element will be shown only for tablet device.\n\n\nAnother example for mobile device\n\n```\n\u003cdiv ng-show-on=\"mobile\" class=\"test\"\u003e\n    \u003cp\u003eHello here\u003c/p\u003e\n\u003c/div\u003e\n```\n\nFor the moment, the arguments available are : \n- tablet\n- desktop\n- mobile\n\nBy default, if no value are passed, the element is hidden on all devices.\n\n## Tips\n\nThis is my first time that I post code on github, so I would appreciate if you do remark about the code.\nThank's in advance.\n\n## Authors\n\n* **Paul Rosset**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulrosset%2Fngshowon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulrosset%2Fngshowon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulrosset%2Fngshowon/lists"}