{"id":16186814,"url":"https://github.com/yaru22/ng-html2js","last_synced_at":"2025-03-16T10:32:01.797Z","repository":{"id":10174415,"uuid":"12259256","full_name":"yaru22/ng-html2js","owner":"yaru22","description":"Standalone script to turn Angular template into js and put it in a module.","archived":false,"fork":false,"pushed_at":"2016-08-23T03:48:27.000Z","size":23,"stargazers_count":32,"open_issues_count":5,"forks_count":19,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T10:46:49.499Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yaru22.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-21T02:20:19.000Z","updated_at":"2023-08-09T06:55:43.000Z","dependencies_parsed_at":"2022-09-05T05:51:34.672Z","dependency_job_id":null,"html_url":"https://github.com/yaru22/ng-html2js","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaru22%2Fng-html2js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaru22%2Fng-html2js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaru22%2Fng-html2js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaru22%2Fng-html2js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaru22","download_url":"https://codeload.github.com/yaru22/ng-html2js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814898,"owners_count":20352037,"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-10-10T07:19:38.802Z","updated_at":"2025-03-16T10:32:01.461Z","avatar_url":"https://github.com/yaru22.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"ng-html2js [![Analytics](https://ga-beacon.appspot.com/UA-2694988-7/ng-html2js/readme?pixel)](https://github.com/yaru22/ng-html2js)\n==========\n[![Build Status](https://secure.travis-ci.org/yaru22/ng-html2js.png)](http://travis-ci.org/yaru22/ng-html2js)\n[![Dependency Status](https://gemnasium.com/yaru22/ng-html2js.png)](https://gemnasium.com/yaru22/ng-html2js)\n\nStandalone script to turn Angular template into js and put it in a module.\n\n\nUsage\n-----\n```\n$ ng-html2js inputFile [outputFile] [-m moduleName] [--module-var ngModule]\n```\n\nIf you specify only inputFile, it will display the result to the console.\n\nIf you don't specify moduleName, inputFile will be the name of the module.\n```\n$ ng-html2js test/test.tmpl\nvar module = angular.module('test/test.tmpl', []);\nmodule.run(['$templateCache', function($templateCache) {\n  $templateCache.put('test/test.tmpl',\n    '\u003cdiv\u003e\\n' +\n    '  hello world\\n' +\n    '  \u003cdiv ng-repeat=\"item in items\"\u003e\\n' +\n    '    {{ item }} it\\'s value is great\\n' +\n    '  \u003c/div\u003e\\n' +\n    '\u003c/div\u003e\\n' +\n    '');\n}]);\n```\n\nIf you specify moduleName, the template will belong to that module.\n```\n$ ng-html2js test/test.tmpl -m foo --module-var ngModule\nvar ngModule;\ntry {\n  ngModule = angular.module('foo');\n} catch (e) {\n  ngModule = angular.module('foo', []);\n}\n\nngModule.run(['$templateCache', function ($templateCache) {\n  $templateCache.put('test/test.tmpl',\n    '\u003cdiv\u003e\\n' +\n    '  hello world\\n' +\n    '  \u003cdiv ng-repeat=\"item in items\"\u003e\\n' +\n    '    {{ item }} it\\'s value is great\\n' +\n    '  \u003c/div\u003e\\n' +\n    '\u003c/div\u003e\\n' +\n    '');\n}]);\n```\n\n\nLicense\n-------\nThis seed is released under permissive MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaru22%2Fng-html2js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaru22%2Fng-html2js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaru22%2Fng-html2js/lists"}