{"id":19557156,"url":"https://github.com/gingray/test-angular","last_synced_at":"2025-10-17T05:25:34.842Z","repository":{"id":38699583,"uuid":"207586744","full_name":"gingray/test-angular","owner":"gingray","description":"make angular 8 and rails 6 works just a plain working solution ","archived":false,"fork":false,"pushed_at":"2023-01-19T14:46:25.000Z","size":1435,"stargazers_count":0,"open_issues_count":32,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-08T21:40:49.603Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/gingray.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":"2019-09-10T14:49:17.000Z","updated_at":"2019-09-10T14:49:33.000Z","dependencies_parsed_at":"2023-01-28T19:30:20.657Z","dependency_job_id":null,"html_url":"https://github.com/gingray/test-angular","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingray%2Ftest-angular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingray%2Ftest-angular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingray%2Ftest-angular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingray%2Ftest-angular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gingray","download_url":"https://codeload.github.com/gingray/test-angular/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240814864,"owners_count":19861957,"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-11T04:40:33.665Z","updated_at":"2025-10-17T05:25:29.792Z","avatar_url":"https://github.com/gingray.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"important take a look what need to be changed\n\nproper polifils\n```js\n// hello_angular/polyfills.ts\nimport 'zone.js/dist/zone';\nimport \"core-js/es/reflect\"\nimport \"core-js/proposals/reflect-metadata\"\n```\n\nproper loading html templates and styles\n```js\n// test-angular/config/webpack/environment.js\nenvironment.loaders.append('html', {\n    test: /\\.html$/,\n    use: [{\n        loader: 'html-loader',\n        options: {\n            minimize: true,\n            removeAttributeQuotes: false,\n            caseSensitive: true,\n            customAttrSurround: [ [/#/, /(?:)/], [/\\*/, /(?:)/], [/\\[?\\(?/, /(?:)/] ],\n            customAttrAssign: [ /\\)?\\]?=/ ]\n        }\n    }]\n})\n\nenvironment.loaders.prepend('style', {\n    test: /\\.s[ac]ss$/i,\n    use: [\n        {\n            loader: \"to-string-loader\",\n        }\n    ]\n});\n```\nusage in code\n```ts\nimport { Component } from '@angular/core';\nimport template from './app.component.html';\nimport styles from './styles.sass';\n\n\n@Component({\n  selector: '.hello-angular',\n  template: template,\n  styles: [styles]\n})\nexport class AppComponent {\n  name = 'Try angular';\n}\n```\nimportant that at current time 10.09.2019 css-loader should be above 2.1 and below 3.1 version or it will not work\n```json\n{\n  \"name\": \"test_angular\",\n  \"private\": true,\n  \"dependencies\": {\n    \"@angular/common\": \"^8.2.5\",\n    \"@angular/compiler\": \"^8.2.5\",\n    \"@angular/core\": \"^8.2.5\",\n    \"@angular/platform-browser\": \"^8.2.5\",\n    \"@angular/platform-browser-dynamic\": \"^8.2.5\",\n    \"@rails/actioncable\": \"^6.0.0-alpha\",\n    \"@rails/activestorage\": \"^6.0.0-alpha\",\n    \"@rails/ujs\": \"^6.0.0-alpha\",\n    \"@rails/webpacker\": \"^4.0.7\",\n    \"core-js\": \"^3.2.1\",\n    \"css-loader\": \"^2.1.1\",\n    \"html-loader\": \"^0.5.5\",\n    \"postcss-loader\": \"^3.0.0\",\n    \"resolve-url-loader\": \"^3.1.0\",\n    \"rxjs\": \"^6.5.3\",\n    \"sass\": \"^1.23.0-module.beta.1\",\n    \"to-string-loader\": \"^1.1.5\",\n    \"ts-loader\": \"^6.0.4\",\n    \"turbolinks\": \"^5.2.0\",\n    \"typescript\": \"^3.6.2\",\n    \"zone.js\": \"^0.10.2\"\n  },\n  \"version\": \"0.1.0\",\n  \"devDependencies\": {\n    \"webpack-dev-server\": \"^3.8.0\"\n  }\n}\n```\n\nall this knowledge cost me couple of hours\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgingray%2Ftest-angular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgingray%2Ftest-angular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgingray%2Ftest-angular/lists"}