{"id":13497090,"url":"https://github.com/seiyria/ng2-fontawesome","last_synced_at":"2025-03-28T21:31:57.210Z","repository":{"id":66160040,"uuid":"58577526","full_name":"seiyria/ng2-fontawesome","owner":"seiyria","description":"An easy-to-use directive for font awesome icons.","archived":true,"fork":false,"pushed_at":"2016-08-23T18:35:43.000Z","size":9,"stargazers_count":21,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-23T01:07:15.177Z","etag":null,"topics":["angular2","font-awesome","icons","ng2"],"latest_commit_sha":null,"homepage":null,"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/seiyria.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-05-11T20:13:43.000Z","updated_at":"2023-11-30T21:13:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b073006-a06b-4649-b2ae-20f7fe4c98ac","html_url":"https://github.com/seiyria/ng2-fontawesome","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"a8c7aef794ff302b8c062698c6bffa8e1262d285"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seiyria%2Fng2-fontawesome","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seiyria%2Fng2-fontawesome/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seiyria%2Fng2-fontawesome/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seiyria%2Fng2-fontawesome/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seiyria","download_url":"https://codeload.github.com/seiyria/ng2-fontawesome/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246026087,"owners_count":20711579,"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":["angular2","font-awesome","icons","ng2"],"created_at":"2024-07-31T20:00:23.167Z","updated_at":"2025-03-28T21:31:57.162Z","avatar_url":"https://github.com/seiyria.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized","Third Party Components","Awesome Angular [![Awesome TipeIO](https://img.shields.io/badge/Awesome%20Angular-@TipeIO-6C6AE7.svg)](https://github.com/gdi2290/awesome-angular) [![Awesome devarchy.com](https://img.shields.io/badge/Awesome%20Angular-@devarchy.com-86BDC1.svg)](https://github.com/brillout/awesome-angular-components)"],"sub_categories":["Uncategorized","Icons","Angular \u003ca id=\"angular\"\u003e\u003c/a\u003e"],"readme":"# ng2-fontawesome\nAn easy-to-use directive for [font awesome](https://github.com/FortAwesome/Font-Awesome) icons.\n\n# Install\n`npm i -s ng2-fontawesome`\n\n# Usage\nFirst, make sure you have a CSS and font loader set up for webpack, like so:\n```\n{\n  test: /\\.css/,\n  loader: 'style!css'\n},\n{\n  test: /\\.woff|\\.woff2|\\.svg|.eot|\\.ttf/,\n  loader: 'file'\n},\n```\n\nIt is recommended that you globally apply the Font Awesome directive like so:\n\n```\nimport { provide, PLATFORM_DIRECTIVES } from '@angular/core';\nimport { FontAwesomeDirective } from 'ng2-fontawesome';\nimport { bootstrap } from '@angular/platform-browser-dynamic';\n\nbootstrap(MyAppComponent, [\n  provide(PLATFORM_DIRECTIVES, { useValue: FontAwesomeDirective, multi: true })\n]);\n```\n\nDoing so will allow you to use the `fa` directive anyhwere. Supposing you don't want to do that, registering it and including it like normal will work as well.\n\nHere is how you would use it in your templates:\n\n```html\n\u003ci fa [icon]=\"'cog'\" [fw]=\"true\"\u003e\u003c/i\u003e\n```\n\n# Options\nName    | Valid Values\n----    | ------------\n`icon`  | Any font awesome icon name\n`fw`    | `true`, `false`\n`size`  | `'lg'`, `'2x'`, `'3x'`, `'4x'`, `'5x'`\n`spin`  | `true`, `false`\n`pulse` | `true`, `false`\n`rotate`| `'90'`, `'180'`, `'270'`\n`flip`  | `'vertical'`, `'horizontal'`\n`extra` | any other classes you want to attach to this icon\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseiyria%2Fng2-fontawesome","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseiyria%2Fng2-fontawesome","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseiyria%2Fng2-fontawesome/lists"}