Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
geheugen-angular
Advanced tools
Angular bindings for geheugen.
npm install --save geheugen-angular
<script src="babel-polyfill/dist/polyfill.js"></script>
<script src="angular/angular.js"></script>
<script src="geheugen-angular/dist/geheugen-angular.js"></script>
<script>
angular.module('exampleApp', [ 'geheugen' ]);
</script>
Type: Class
The geheugen Memo class.
Type: Object<String,Memo>
The registry of geheugen Memo instances, keyed by their name.
Type: Function
Returns an Angular constructor1 for the resolved value of the memo with the provided name.
The return value of this function is suitable for being used as a dependency of an Angular route, e.g.:
angular.module('exampleApp')
.config(($routeProvider, memosProvider) => {
$routeProvider.when('/exampleRoute', {
resolve: {
example: memosProvider('example')
}
});
});
Type: String
The name of the memo.
Type: Function
Register a memo with the provided name.
Returns an Angular constructor1 for the memo.
The return value of this function is suitable for being used as the $get
method of an Angular provider, e.g.:
angular.module('exampleApp')
.provider('exampleMemo', function (memosProvider) {
this.$get = memosProvider('example',
$filter => $filter('number')('3.1415', 2));
});
Type: String
The name of the memo.
Type: Object<String, ?>
Default: {}
The memo options.
Type: Boolean
Default: true
The singleton flag.
Type: Array<String>
Default: []
The dependencies of the memo.
This array contains the names of the memos upon which this memo depends.
The resolved values of the dependant memos will be available as locals to the Angular constructor1
provided via factory
, e.g.:
angular.module('exampleApp')
.provider('dependencyMemo', function (memosProvider) {
this.$get = memosProvider('dependency', () => '3.1415');
})
.provider('exampleMemo', function (memosProvider) {
this.$get = memosProvider('example', { dependencies: [ 'dependency' ] },
($filter, dependency) => $filter('number')(dependency, 2));
});
Type: Function
The reset event handler.
This function will be invoked when the memo is reset.
This function will be invoked via $injector.invoke()
.
Type: Function
or Array
The Angular constructor1 for the resolved value of the memo.
The factory can return the either resolved value itself or a promise for the resolved value.
Type: Function
Returns the resolved value of the memo with the provided name.
Type: String
The name of the memo.
Type: Function
Reset the memo with the provided name.
Type: String
The name of the memo.
Type: Function
Reset the dependants of the memo with the provided name.
Type: String
The name of the memo.
Type: Function
Returns the resolved value of the memo.
A memo instance can be created via memosProvider().
Type: Function
Reset the memo.
Type: Function
Reset the dependants of the memo.
FAQs
Angular bindings for geheugen
The npm package geheugen-angular receives a total of 0 weekly downloads. As such, geheugen-angular popularity was classified as not popular.
We found that geheugen-angular demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.