geheugen-angular
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "geheugen-angular", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Angular bindings for geheugen", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -80,3 +80,3 @@ # geheugen-angular | ||
this.$get = memosProvider('example', | ||
$filter => $filter('number')('3.1415', 2)); | ||
($q, $filter) => $q.resolve($filter('number')('3.1415', 2))); | ||
}); | ||
@@ -119,7 +119,7 @@ ``` | ||
.provider('dependencyMemo', function (memosProvider) { | ||
this.$get = memosProvider('dependency', () => '3.1415'); | ||
this.$get = memosProvider('dependency', $q => $q.resolve('3.1415')); | ||
}) | ||
.provider('exampleMemo', function (memosProvider) { | ||
this.$get = memosProvider('example', { dependencies: [ 'dependency' ] }, | ||
($filter, dependency) => $filter('number')(dependency, 2)); | ||
($q, $filter, dependency) => $q.resolve($filter('number')(dependency, 2))); | ||
}); | ||
@@ -142,3 +142,3 @@ ``` | ||
The factory can return the either resolved value itself or a promise for the resolved value. | ||
The factory must return a promise for the resolved value. | ||
@@ -145,0 +145,0 @@ #### memos(name) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54672