{"id":22088778,"url":"https://github.com/hchiam/learning-angular8","last_synced_at":"2026-05-09T06:35:50.631Z","repository":{"id":52189540,"uuid":"245022075","full_name":"hchiam/learning-angular8","owner":"hchiam","description":"Learning Angular 8: https://www.youtube.com/watch?v=_TLhUCjY9iA","archived":false,"fork":false,"pushed_at":"2021-05-05T21:10:16.000Z","size":1291,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-17T04:48:03.098Z","etag":null,"topics":["angular","angular8","angularcli","scss","ts","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/hchiam.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":"2020-03-04T23:02:11.000Z","updated_at":"2021-05-05T21:10:18.000Z","dependencies_parsed_at":"2022-08-27T18:31:40.884Z","dependency_job_id":null,"html_url":"https://github.com/hchiam/learning-angular8","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"hchiam/learning-something","purl":"pkg:github/hchiam/learning-angular8","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hchiam%2Flearning-angular8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hchiam%2Flearning-angular8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hchiam%2Flearning-angular8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hchiam%2Flearning-angular8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hchiam","download_url":"https://codeload.github.com/hchiam/learning-angular8/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hchiam%2Flearning-angular8/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32809920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","angular8","angularcli","scss","ts","typescript"],"created_at":"2024-12-01T02:09:33.725Z","updated_at":"2026-05-09T06:35:50.605Z","avatar_url":"https://github.com/hchiam.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learning Angular 8\n\nJust one of the things I'm learning. \u003chttps://github.com/hchiam/learning\u003e\n\nDesignCourse tutorial I'm following:\n\n- \u003chttps://www.youtube.com/watch?v=_TLhUCjY9iA\u003e\n- or \u003chttps://coursetro.com/posts/code/174/Angular-8-Tutorial-\u0026-Crash-Course\u003e\n\n(Re)-run `npm install -g @angular/cli` to make sure the `ng` command is up to date.\n\nAside: You can run `np help` to get a list of available commands for the Angular CLI tool.\n\n## Start up commands\n\n```bash\nnode -v\nnpm -v\nnpm install -g @angular/cli\nng help\nng new myapp\n# routing? y\n# SCSS\ncd myapp\nng serve -o\n# automatically opens and hot-reloads http://localhost:4200\n```\n\n```bash\n# Control+C\nng build --prod\n```\n\n## Folder structure\n\n```text\nmyapp\n  e2e\n  node_modules\n  src\n    app \u003c-- you'll spend most of your time here on components and routing\n    ..app.component.ts \u003c-- main heart component\n    assets\n    environments\n    ..index.html \u003c-- here be the entry point \u003capp-root\u003e, but usually not doing work here\n    ..styles.scss \u003c-- global styles go here\n```\n\n## `app.component.ts`\n\n`@Component({...})` is the component decorator, which is set up to connect to the component tag (e.g. `\u003capp-root\u003e`), the HTML file (e.g. `app.component.html`), and the CSS file (e.g. `app.component.scss`).\n\n## Routing\n\n```bash\ncd myapp\n# ng generate component \u003ccomponent-name\u003e, or just:\nng g c home\nng g c list\n```\n\nKeep `\u003crouter-outlet\u003e\u003c/router-outlet\u003e` in HTML inside `myapp/src/app/app.component.html`.\n\n## Groups of files\n\n`ng g c \u003ccomponent-name\u003e` generates 4 files:\n\n```text\n.ts      = brain\n.html    = structure\n.scss    = style\n.spec.ts = test\n```\n\n## Services\n\n= special components that are reusable throughout your app\n\n```bash\ncd myapp\n# ng generate service \u003cservice-name\u003e\nng g s http\n```\n\n## Aside CSS note\n\n```css\n.container {\n  display: flex; /* automatically fills up a row */;\n  flex-wrap: wrap; /* to automatically create new rows */\n  /* to wrap columns instead, change flex-direction and make sure height is bounded: */\n  /* flex-direction: column; */\n  /* height: 100vh; */\n}\n```\n\n## Build for production (`dist` folder)\n\n```bash\ncd myapp\nng build --prod\n```\n\nTo run the production build on a local server, you can try:\n\n```bash\ncd myapp\n# (stop any other running local server)\nnpm i -g lite-server\ncd dist/myapp\nlite-server\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhchiam%2Flearning-angular8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhchiam%2Flearning-angular8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhchiam%2Flearning-angular8/lists"}