{"id":16426662,"url":"https://github.com/michaelsolati/ngmeta","last_synced_at":"2025-10-26T23:30:39.593Z","repository":{"id":65458286,"uuid":"74230819","full_name":"MichaelSolati/ngmeta","owner":"MichaelSolati","description":"A simple tool for updating meta-tags in an Angular app.","archived":false,"fork":false,"pushed_at":"2022-04-10T01:42:28.000Z","size":582,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T01:11:17.395Z","etag":null,"topics":["angular","hacktoberfest","metadata","seo"],"latest_commit_sha":null,"homepage":"https://ngmeta.otta.dev/","language":"TypeScript","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/MichaelSolati.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-19T19:34:00.000Z","updated_at":"2022-12-01T22:24:37.000Z","dependencies_parsed_at":"2023-01-24T13:15:37.241Z","dependency_job_id":null,"html_url":"https://github.com/MichaelSolati/ngmeta","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelSolati%2Fngmeta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelSolati%2Fngmeta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelSolati%2Fngmeta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelSolati%2Fngmeta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MichaelSolati","download_url":"https://codeload.github.com/MichaelSolati/ngmeta/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238408676,"owners_count":19467157,"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","hacktoberfest","metadata","seo"],"created_at":"2024-10-11T08:09:53.855Z","updated_at":"2025-10-26T23:30:39.199Z","avatar_url":"https://github.com/MichaelSolati.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngmeta\n\n[![npm](https://img.shields.io/npm/v/ngmeta)](https://www.npmjs.com/package/ngmeta)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/ngmeta)](https://bundlephobia.com/result?p=ngmeta)\n[![GitHub stars](https://img.shields.io/github/stars/MichaelSolati/ngmeta)](https://github.com/MichaelSolati/ngmeta/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/MichaelSolati/ngmeta)](https://github.com/MichaelSolati/ngmeta/network/members)\n\nA tool for updating meta tags in an Angular application.\n\n- [Getting Started](#getting-started)\n- [How To Use](#how-to-use)\n- [Documentation](#documentation)\n- [Interfaces](#interfaces)\n- [Functions](#functions)\n- [Changes](#changes)\n\n## Getting Started\n\n```bash\nnpm i ngmeta\n```\n\n## How To Use\n\nFirst import the `NgMeta` as a `provider` into your app.\n\n```TypeScript\nimport { NgMeta } from 'ngmeta';\n...\n@NgModule({\n  providers: [\n    NgMeta\n  ],\n  bootstrap: [\n    AppComponent\n  ]\n})\nexport class AppModule { }\n```\n\nTo dynamically edit this data whenever a page is loaded. Import `NgMeta` into your component, then inside of your constructor pass in the `NgMeta` service as an argument.\n\n```TypeScript\nimport { NgMeta } from 'ngmeta';\n...\nexport class AppComponent {\n    constructor(private ngmeta: NgMeta) {}\n}\n```\n\nThen in the component we can call our `NgMeta` service `this.ngmeta.setHead()`. This takes an object of the new values for the tags you want. Below we change the title and description data on a page.\n\n```TypeScript\nthis.ngmeta.setAll({\n  title: \"Google\",\n  description:\n    \"Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.\",\n});\n```\n\nNow our head data will display\n\n```HTML\n\u003chead\u003e\n  \u003ctitle\u003eGoogle\u003c/title\u003e\n  \u003cmeta\n    name=\"description\"\n    content=\"Search the world's information, including\n  webpages, images, videos and more. Google has many special features to help\n  you find exactly what you're looking for.\"\n  /\u003e\n\u003c/head\u003e\n```\n\n## Documentation\n\nFull documentation for the NGMeta service is [available here](https://ngmeta.otta.dev).\n\n## Changes\n\nChanges happen, check out [the changelog](https://github.com/MichaelSolati/ngmeta/blob/master/CHANGELOG.md) to see the latest changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelsolati%2Fngmeta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelsolati%2Fngmeta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelsolati%2Fngmeta/lists"}