{"id":16760255,"url":"https://github.com/ryanve/click-class","last_synced_at":"2025-03-16T09:16:31.987Z","repository":{"id":57200188,"uuid":"77878433","full_name":"ryanve/click-class","owner":"ryanve","description":"Angular click-class directive","archived":false,"fork":false,"pushed_at":"2017-01-03T09:21:23.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"gh-pages","last_synced_at":"2025-03-15T21:51:21.122Z","etag":null,"topics":["angular","angular-directive","angular-directives"],"latest_commit_sha":null,"homepage":"https://ryanve.github.io/click-class/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanve.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-03T02:48:12.000Z","updated_at":"2017-01-12T06:21:25.000Z","dependencies_parsed_at":"2022-09-16T15:02:14.090Z","dependency_job_id":null,"html_url":"https://github.com/ryanve/click-class","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fclick-class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fclick-class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fclick-class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fclick-class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanve","download_url":"https://codeload.github.com/ryanve/click-class/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243847056,"owners_count":20357317,"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","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","angular-directive","angular-directives"],"created_at":"2024-10-13T04:22:53.632Z","updated_at":"2025-03-16T09:16:31.699Z","avatar_url":"https://github.com/ryanve.png","language":"CSS","readme":"# click-class\nAngular `click-class` directive\n\n## [Demo](https://ryanve.github.io/click-class/)\n\n#### Toggle class on clicked element\n\n```html\n\u003cbutton class=\"button\" click-class=\"button--toggled\"\u003eToggle\u003c/button\u003e\n```\n\n#### Toggle class on target element(s)\n```html\n\u003cbutton class=\"button\" click-class='{\".target\": \"target--toggled\"}'\u003eToggle\u003c/button\u003e\n```\n\n## Setup\n\n#### Install via npm\n\n```\nnpm install click-class --save\n```\n\n#### Declare dependency on your app\n\n```js\nangular.module('yourApp', ['clickClass'])\n```\n\n#### **Or** define the directive on your app\n\n```js\nangular.module('yourApp', []).directive('clickClass', require('click-class'))\n```\n\n## Develop\n\n```\nnpm test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Fclick-class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanve%2Fclick-class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Fclick-class/lists"}