{"id":37841138,"url":"https://github.com/gitrust/angular-venture","last_synced_at":"2026-01-16T16:00:21.714Z","repository":{"id":39561277,"uuid":"165205911","full_name":"gitrust/angular-venture","owner":"gitrust","description":"An experimental Angular project to get familiar with Angular framework","archived":false,"fork":false,"pushed_at":"2023-01-04T20:59:11.000Z","size":2589,"stargazers_count":0,"open_issues_count":32,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2023-11-01T19:33:08.322Z","etag":null,"topics":["angular","angular7","python","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitrust.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-01-11T08:17:26.000Z","updated_at":"2023-11-01T19:33:08.323Z","dependencies_parsed_at":"2023-02-02T20:46:28.742Z","dependency_job_id":null,"html_url":"https://github.com/gitrust/angular-venture","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/gitrust/angular-venture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitrust%2Fangular-venture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitrust%2Fangular-venture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitrust%2Fangular-venture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitrust%2Fangular-venture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitrust","download_url":"https://codeload.github.com/gitrust/angular-venture/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitrust%2Fangular-venture/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","angular7","python","typescript"],"created_at":"2026-01-16T16:00:16.680Z","updated_at":"2026-01-16T16:00:21.398Z","avatar_url":"https://github.com/gitrust.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Description\n\nAn experimental Angular project to get familiar with Angular framework\n\n# Angular installation\n\nInstall the Angular CLI\n\n\tnpm install -g @angular/cli\n\n# Usage\n\n## Development server\n\nRun `ng serve` or `ng server --open` for a dev server. Navigate to `http://localhost:4200/`. \nThe app will automatically reload if you change any of the source files.\n\n## Code scaffolding\n\nRun `ng generate component component-name` to generate a new component. \nYou can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\n\n# Angular Project Folder Structure\n\n- https://scotch.io/tutorials/angularjs-best-practices-directory-structure\n\n\nExample:\n\n\tapp/\n\t----- shared/   // acts as reusable components or partials of our site\n\t---------- sidebar/\n\t--------------- sidebarDirective.js\n\t--------------- sidebarView.html\n\t---------- article/\n\t--------------- articleDirective.js\n\t--------------- articleView.html\n\t----- components/   // each component is treated as a mini Angular app\n\t---------- home/\n\t--------------- homeController.js\n\t--------------- homeService.js\n\t--------------- homeView.html\n\t---------- blog/\n\t--------------- blogController.js\n\t--------------- blogService.js\n\t--------------- blogView.html\n\t----- app.module.js\n\t----- app.routes.js\n\tassets/\n\t----- img/      // Images and icons for your app\n\t----- css/      // All styles and style related files (SCSS or LESS files)\n\t----- js/       // JavaScript files written for your app that are not for angular\n\t----- libs/     // Third-party libraries such as jQuery, Moment, Underscore, etc.\n\tindex.html\n\n\n# Lessons learned\n\n- Angular is a platform and framework for building client applications in HTML and TypeScript\n- Angular is written in TypeScript\n- The basic building blocks are NgModules\n- NgModules provide a compilation context for components\n- NgModule is defined by a class decorated with @NgModule()\n- @NgModule() is a function that takes a single metadata object with properties\n- Components define views\n- Components use services\n- Service providers can be injected\n- Components and services are simply classes, with decorators\n- Decorators are functions that modify JavaScript classes\n- Each component defines a class that contains application data and logic\n- A component and its template together define a view\n- A component controls a patch of screen called a view\n- A component can contain a view hierarchy\n- A created component is associated directly with a single view (host view)\n- An app always has at least a root module (AppModule), bootstrapping\n- Any NgModule can include any number of additional components\n- The metadata for a component class associates it with a template  (view)\n- A template combines HTML with Angular markup\n- In JavaScript each file is a module and all objects defined in the file belong to that module\n- Each Angular library name begins with the @angular prefix\n- You can install Angular libraries with npm\n- Put cleanup logic in ngOnDestroy()\n- Angular calls its ngOnChanges() method whenever it detects changes to input properties\n- You generally don't declare components in a routing module\n- The injector is the main mechanism\n- An injector creates dependencies, and maintains a container of dependency instances that it reuses if possible\n- A provider is an object that tells an injector how to obtain or create a dependency\n- A dependency could be a service, function or a value\n- Injectors are inherited\n- You can configure injectors at different levels: @Injectable, @NgModule, @Component\n- Services are singletons within the scope of an injector\n- There is only one root injector for an app\n- Angular Modules is all about application organization\n- ES Modules is all about file organization\n- A Decorator is a function that adds metadata to a class, its member or its method args\n- A directive is a custom HTML element\n- An asterisk in front of directive name marks it as structured directive\n\n# Best practices \n\n- Modularize the Header and Footer\n- Modularize the Routes\n- Don't Forget to Minify\n- Keep the Names Consistent\n- Components should be cheap and safe to construct\n- Don't fetch data in a component constructor\n- An ngOnInit() is a good place for a component to fetch its initial data\n\n# References\n\n- https://angular.io/guide/quickstart (Starting with Angular)\n- https://angular.io/guide/architecture (Architecture Guide)\n- https://github.com/vega/vega/blob/master/docs/data/cars.json ( see https://github.com/vega/vega/blob/master/LICENSE for usage)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitrust%2Fangular-venture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitrust%2Fangular-venture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitrust%2Fangular-venture/lists"}