{"id":20031512,"url":"https://github.com/rotorgames/angular-rg-cache-view","last_synced_at":"2025-09-13T22:20:05.212Z","repository":{"id":19777009,"uuid":"23035556","full_name":"rotorgames/angular-rg-cache-view","owner":"rotorgames","description":null,"archived":false,"fork":false,"pushed_at":"2014-08-17T08:29:46.000Z","size":340,"stargazers_count":13,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-05T04:36:28.695Z","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/rotorgames.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":"2014-08-17T07:27:23.000Z","updated_at":"2023-04-17T15:12:40.000Z","dependencies_parsed_at":"2022-08-25T20:41:53.739Z","dependency_job_id":null,"html_url":"https://github.com/rotorgames/angular-rg-cache-view","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rotorgames/angular-rg-cache-view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rotorgames%2Fangular-rg-cache-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rotorgames%2Fangular-rg-cache-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rotorgames%2Fangular-rg-cache-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rotorgames%2Fangular-rg-cache-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rotorgames","download_url":"https://codeload.github.com/rotorgames/angular-rg-cache-view/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rotorgames%2Fangular-rg-cache-view/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275035384,"owners_count":25394220,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"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":"2024-11-13T09:33:32.235Z","updated_at":"2025-09-13T22:20:05.183Z","avatar_url":"https://github.com/rotorgames.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Angular Cache View \n===========\n\nPerformance\n===========\n`ng-repeat` of 1000 elements. Performance 400%\n\nWhy use?\n===========\nAngular, after the change of state, re-compiles dom. rgCacheView caches dom, keeping scope. \nData binding, events, watchers, stop listening $digest after caching, and not re-compiled, are still in the cache. \nAfter the restoration of the cache, scope updated and compiled only the changed elements dom.\n![Test](img/angular-rg-cach-view.jpg)\n\nHow use?\n===========\n\n```html\n\u003crg-cache-view name=\"cacheName\"\u003e\n  \u003cdiv ng-repeat=\"item in items\"\u003e\n  \u003c/div\u003e\n\u003c/rg-cache-view\u003e\n```\n\nEvents\n===========\n\n| Name           | When called                                              |\n| -------------  | -------------                                            |\n| $inCacheStart  | Before disconnecting the scope, and the removal of dom.  |\n| $inCacheEnd    | After disconnecting the scope, and the removal of dom.   |\n| $outCacheStart | Before connecting the scope, and the restoration of dom. |\n| $outCacheEnd   | After connecting the scope, and the restoration of dom.  |\n```javascript\nscope.$on('$inCacheStart', function(event, childScope){\n  //Some code\n})\n```\n\n\nLICENSE\n===========\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 rotorgames\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frotorgames%2Fangular-rg-cache-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frotorgames%2Fangular-rg-cache-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frotorgames%2Fangular-rg-cache-view/lists"}