{"id":15686955,"url":"https://github.com/patrickjs/angular-off","last_synced_at":"2025-12-12T02:51:50.410Z","repository":{"id":10836972,"uuid":"13115980","full_name":"PatrickJS/angular-off","owner":"PatrickJS","description":"Providing the method $off for $rootScope in Angular.js","archived":false,"fork":false,"pushed_at":"2014-09-26T17:56:44.000Z","size":169,"stargazers_count":10,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-03T16:18:42.766Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/PatrickJS.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":"2013-09-26T07:44:12.000Z","updated_at":"2025-02-06T04:46:10.000Z","dependencies_parsed_at":"2022-08-29T13:31:03.378Z","dependency_job_id":null,"html_url":"https://github.com/PatrickJS/angular-off","commit_stats":null,"previous_names":["gdi2290/angular-off"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/PatrickJS/angular-off","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fangular-off","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fangular-off/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fangular-off/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fangular-off/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatrickJS","download_url":"https://codeload.github.com/PatrickJS/angular-off/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fangular-off/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27675309,"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-12-12T02:00:06.775Z","response_time":129,"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-10-03T17:42:04.915Z","updated_at":"2025-12-12T02:51:50.377Z","avatar_url":"https://github.com/PatrickJS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular-off [![Build Status](https://travis-ci.org/gdi2290/angular-off.png?branch=master)](https://travis-ci.org/gdi2290/angular-off)\n\nProviding the method $off for $rootScope in Angular.js\n\n#How do I add this to my project?\n\nYou can download angular-off by:\n\n* (prefered) Using bower and running `bower install angular-off --save`\n* Using npm and running `npm install angular-off --save`\n* Downloading it manually by clicking [here to download development unminified version](https://raw.github.com/gdi2290/angular-off/master/angular-off.js)\n\n\n````html\n\u003cscript src=\"http://ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"app/bower_components/angular-off/angular-off.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  angular.module('YOUR_APP', [\n    'controllers'\n  ]);\n\n  angular.module('controllers', [])\n    .controller('MainCtrl', function() {\n\n      $scope.$on('$routeChangeError', function alertEvent(event, current, prevous, rejection) {\n        alert('Filed to change routes!');\n      });\n\n      $scope.button = function() {\n       $scope.$off('$routeChangeError', alertEvent);\n      };\n\n    });\n\u003c/script\u003e\n\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickjs%2Fangular-off","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickjs%2Fangular-off","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickjs%2Fangular-off/lists"}