{"id":21292033,"url":"https://github.com/johnnythetank/angular-balance-text","last_synced_at":"2026-02-09T17:35:09.397Z","repository":{"id":57178029,"uuid":"55066971","full_name":"JohnnyTheTank/angular-balance-text","owner":"JohnnyTheTank","description":"AngularJS Wrapper for jQuery balance-text for implementing balancing of wrapping text in a web page","archived":false,"fork":false,"pushed_at":"2016-04-25T07:44:33.000Z","size":68,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T16:13:52.353Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/JohnnyTheTank.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":"2016-03-30T13:50:02.000Z","updated_at":"2024-04-18T11:00:50.000Z","dependencies_parsed_at":"2022-09-11T07:01:16.712Z","dependency_job_id":null,"html_url":"https://github.com/JohnnyTheTank/angular-balance-text","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2Fangular-balance-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2Fangular-balance-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2Fangular-balance-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2Fangular-balance-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JohnnyTheTank","download_url":"https://codeload.github.com/JohnnyTheTank/angular-balance-text/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243762228,"owners_count":20343972,"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":[],"created_at":"2024-11-21T13:47:16.038Z","updated_at":"2026-02-09T17:35:09.341Z","avatar_url":"https://github.com/JohnnyTheTank.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular-balance-text\nAngularJS Wrapper for [jQuery balance-text](https://github.com/adobe-webplatform/balance-text) for implementing balancing of wrapping text in a web page\n\n[![npm version](https://badge.fury.io/js/angular-balance-text.svg)](https://badge.fury.io/js/angular-balance-text)\n[![Bower version](https://badge.fury.io/bo/angular-balance-text.svg)](https://badge.fury.io/bo/angular-balance-text)\n\n## Demo\n[Simple demo](https://rawgit.com/JohnnyTheTank/angular-balance-text/master/demo/index.html)\n\n## Installation\n\n1. Install via either [bower](http://bower.io/), [npm](https://www.npmjs.com/) or downloaded files:\n    1. via bower: `bower install --save angular-balance-text`\n    2. via npm: `npm install --save angular-balance-text`\n    3. via [downloaded files](https://github.com/JohnnyTheTank/angular-balance-text/zipball/master)\n2. Add `jtt_balance_text` to your application's module dependencies.\n3. Include dependencies and angular-balance-text in your HTML.\n    1. When using bower\n    ```html\n    \u003cscript src=\"bower_components/balance-text/jquery.balancetext.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"bower_components/angular-balance-text/dist/angular-balance-text.min.js\"\u003e\u003c/script\u003e\n    ```\n    2. When using npm\n    ```html\n    \u003cscript src=\"node_modules/balance-text/jquery.balancetext.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"node_modules/angular-balance-text/dist/angular-balance-text.min.js\"\u003e\u003c/script\u003e\n    ```\n\n    3. When using downloaded files\n    ```html\n    \u003cscript src=\"YOUR_PATH/jquery.balancetext.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"YOUR_PATH/angular-balance-text.min.js\"\u003e\u003c/script\u003e\n    ```\n\n## Usage\n\n### Event\nAngular event to manually re-balance all triggered elements use `angular-balance-text.refresh`\n\n```javascript\n//dispatches the event upwards through the scope hierarchy\n$scope.$emit('angular-balance-text.refresh');\n\n//dispatches the event downwards to all child scopes\n$scope.$broadcast('angular-balance-text.refresh');\n```\n\n### Documentation\n\n**Read the docs of jQuery balance-text [jQuery balance-text](https://github.com/adobe-webplatform/balance-text)**\n\n## License\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnythetank%2Fangular-balance-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnnythetank%2Fangular-balance-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnythetank%2Fangular-balance-text/lists"}