{"id":21429436,"url":"https://github.com/alonrbar/easy-template-x-angular-expressions","last_synced_at":"2025-07-14T11:30:33.169Z","repository":{"id":53026560,"uuid":"338657955","full_name":"alonrbar/easy-template-x-angular-expressions","owner":"alonrbar","description":"Angular expressions support for easy-template-x","archived":false,"fork":false,"pushed_at":"2023-05-15T19:21:59.000Z","size":213,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-31T18:12:12.435Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/alonrbar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-02-13T19:57:44.000Z","updated_at":"2024-06-17T11:24:09.000Z","dependencies_parsed_at":"2022-09-02T02:12:14.349Z","dependency_job_id":null,"html_url":"https://github.com/alonrbar/easy-template-x-angular-expressions","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/alonrbar%2Feasy-template-x-angular-expressions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alonrbar%2Feasy-template-x-angular-expressions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alonrbar%2Feasy-template-x-angular-expressions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alonrbar%2Feasy-template-x-angular-expressions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alonrbar","download_url":"https://codeload.github.com/alonrbar/easy-template-x-angular-expressions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225970942,"owners_count":17553420,"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-22T22:17:46.661Z","updated_at":"2024-11-22T22:17:47.137Z","avatar_url":"https://github.com/alonrbar.png","language":"TypeScript","funding_links":[],"categories":["Development Utilities"],"sub_categories":["Documentation Tools"],"readme":"# easy-template-x-angular-expressions\n\nAngular expressions support for [easy-template-x](https://github.com/alonrbar/easy-template-x).\n\n## Usage\n\nFor basic usage and how to write `easy-template-x` templates please read the main package [docs](https://github.com/alonrbar/easy-template-x).\n\nTo enable [Angular](https://angular.io/) expressions support set the `scopeDataResolver` option of the handler.\nYou can also define custom filters, as seen below:\n\n```typescript\nimport { TemplateHandler } from \"easy-template-x\"\nimport { createResolver } from \"easy-template-x-angular-expressions\"\n\nconst handler = new TemplateHandler({\n    scopeDataResolver: createResolver({\n        angularFilters: {\n            upper: (input: string) =\u003e (input || \"\").toUpperCase(),\n            lower: (input: string) =\u003e (input || \"\").toLowerCase()\n        }\n    })\n});\n```\n\nYou can then use templates like this one:\n\nInput:\n\n![input template](./docs/assets/main-example-in.png?raw=true)\n\nData:\n\n```javascript\n {\n    myLoop: [\n        {\n            casing: \"upper\",\n            item: {\n                name: \"Bla\"\n            }\n        },\n        {\n            casing: \"lower\",\n            item: {\n                name: \"Some\"\n            }\n        },\n    ]\n}\n```\n\nOutput:\n\n![output document](./docs/assets/main-example-out.png?raw=true)\n\n## Resolver options\n\nThe resolver behavior is configurable, read more in the [options file](https://github.com/alonrbar/easy-template-x-angular-expressions/blob/master/src/resolverOptions.ts).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falonrbar%2Feasy-template-x-angular-expressions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falonrbar%2Feasy-template-x-angular-expressions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falonrbar%2Feasy-template-x-angular-expressions/lists"}