{"id":22916440,"url":"https://github.com/nilz3ro/simple-directives","last_synced_at":"2025-12-12T04:03:06.673Z","repository":{"id":57360003,"uuid":"47997848","full_name":"nilz3ro/simple-directives","owner":"nilz3ro","description":"A declarative directive library for angular.","archived":false,"fork":false,"pushed_at":"2017-11-27T20:21:32.000Z","size":2163,"stargazers_count":6,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T17:03:48.998Z","etag":null,"topics":["angular","directives","javascript","simple"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/nilz3ro.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":"2015-12-14T19:55:28.000Z","updated_at":"2018-12-06T02:42:46.000Z","dependencies_parsed_at":"2022-08-30T22:31:45.057Z","dependency_job_id":null,"html_url":"https://github.com/nilz3ro/simple-directives","commit_stats":null,"previous_names":["abuddington/simple-table-directives"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilz3ro%2Fsimple-directives","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilz3ro%2Fsimple-directives/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilz3ro%2Fsimple-directives/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilz3ro%2Fsimple-directives/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilz3ro","download_url":"https://codeload.github.com/nilz3ro/simple-directives/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253784908,"owners_count":21963899,"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","directives","javascript","simple"],"created_at":"2024-12-14T06:12:52.883Z","updated_at":"2025-12-12T04:03:06.350Z","avatar_url":"https://github.com/nilz3ro.png","language":"JavaScript","readme":"# simple-directives\n*A refreshingly simple, declarative directive library for Angular.*\n\n[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n[![NPM](https://nodei.co/npm/simple-directives.png)](https://nodei.co/npm/simple-directives/)\n## Install\n```\nnpm install --save simple-directives\nbower install --save simple-directives\nyarn add simple-directives\n```\nOnce you've done that, you'll have a copy of `simple-directives` in your project's\n`bower_components` or `node_modules` directory.\n\n## Include\nThe easiest way to use `simple-directives` in your project is by including it with\na script tag.\n```html\n\u003cscript\n  type=\"application/javascript\"\n  src=\"./bower_components/simple-directives/simple-directives.js\"\u003e\n\u003c/script\u003e\n```\n\nThis library also works well with build systems like `gulp` especially with `gulp-main-bower-files`.\n\n## Use\n\nOnce you've added a script tag, or bundled `simple-directives.js`, you can use it by adding it as a dependency to your angular app like this:\n```javascript\n(function() {\n  angular.module('ExampleApp', [\n      'simple-directives'\n    ])\n})()\n```\n\nHere's an example of how to build a flexible, declarative table.\n```html\n\u003cs-table\n  s-model-list=\"ActorsController.myFavoriteActors\"\n  default-sort-key=\"vm.defaultSortKey\"\n  default-sort-order=\"vm.defaultSortOrder\"\n  on-sort-change=\"vm.doStuff\"\u003e\n  \u003cs-thead\u003e\n    \u003cs-row\u003e\n      \u003cs-column s-order-by=\"name\"\u003eName\u003c/s-column\u003e\n      \u003cs-column s-order-by=\"age\"\u003eAge\u003c/s-column\u003e\n      \u003cs-column s-order-by=\"award_count\"\u003eNumber of Awards\u003c/s-column\u003e\n    \u003c/s-row\u003e\n  \u003c/s-thead\u003e\n  \u003cs-tbody\u003e\n    \u003cs-row\u003e\n      \u003cs-cell\u003e{{ model.name }}\u003c/s-column\u003e\n      \u003cs-cell\u003e{{ model.age }}\u003c/s-column\u003e\n      \u003cs-cell\u003e{{ model.award_count }}\u003c/s-column\u003e\n    \u003c/s-row\u003e\n  \u003c/s-body\u003e\n\u003c/s-table\u003e\n```\n\nMade with precision by [@nilz3ro](https://github.com/nilz3ro).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilz3ro%2Fsimple-directives","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilz3ro%2Fsimple-directives","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilz3ro%2Fsimple-directives/lists"}