{"id":51595948,"url":"https://github.com/petarjs/cosmic-angular-services","last_synced_at":"2026-07-11T18:42:40.883Z","repository":{"id":34523555,"uuid":"38465958","full_name":"petarjs/cosmic-angular-services","owner":"petarjs","description":"First exercise. We are making a selectable list of services, that can calculate the price of selected services.","archived":false,"fork":false,"pushed_at":"2016-02-22T15:33:22.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-08-23T06:27:00.646Z","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/petarjs.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":"2015-07-03T01:47:13.000Z","updated_at":"2023-08-23T06:27:00.647Z","dependencies_parsed_at":"2022-09-15T04:12:14.206Z","dependency_job_id":null,"html_url":"https://github.com/petarjs/cosmic-angular-services","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/petarjs/cosmic-angular-services","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petarjs%2Fcosmic-angular-services","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petarjs%2Fcosmic-angular-services/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petarjs%2Fcosmic-angular-services/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petarjs%2Fcosmic-angular-services/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petarjs","download_url":"https://codeload.github.com/petarjs/cosmic-angular-services/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petarjs%2Fcosmic-angular-services/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35372639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-11T02:00:05.354Z","response_time":104,"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":[],"created_at":"2026-07-11T18:42:39.898Z","updated_at":"2026-07-11T18:42:40.875Z","avatar_url":"https://github.com/petarjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# List of Services\n\nIn this first exercise we will make a list of offered services.  \nThe services in the list have a name and a price.  \nClicking on a service selects or deselects that service.  \nServices that are selected are red, while the selected ones are green.  \nBelow the list, we want to show the calculated sum of all selected services.  \n\nYou will find the image depicting the task in `example-image` folder.\n\n## Submitting your solutions\n\nTo submit your solution, clone this repo and make a branch with your name in it, for example  \n`git checkout -b bradonja`  \nand push it.\n\n## Asking questions\n\nIf you come accross something that's bugging you, please submit an issue to this repo.  \nI will reply as soon as I can.\n\n## Points of extension\n\nThese are the additional tasks that we can do.\n\n### Discount\n\nAdd a field to enter a promo code.  \nIf the entered code is `NG-IS-COOL`, decrease the price by 25%.\n\n### Loading from server\n\nLets load the services array from the server.  \nTo make it simple, we'll just put the array in a `services.json` file.  \nTo get the services from the server, we will use the `$http` service.\n\n### Adding services\n\nIf we wanted to add new services to the list, we would need to make a form for it.  \nMake a form with two inputs - name and price, and a button.  \nWhen the button is clicked, add the new service to the list. (Hint: `ng-click`)  \nWe also want for newly added services to appear on top of the list.\n\n### Search\n\nWe want to have instant search of our services.  \nAdd an input box above the services list that will be used as a filter.  \nFilter the list of services to show only those services whose name matches the filter.  \n(Hint: use angular's filters inside of `ng-repeat`)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetarjs%2Fcosmic-angular-services","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetarjs%2Fcosmic-angular-services","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetarjs%2Fcosmic-angular-services/lists"}