refactor(chore): Replace all 'bindings' with 'providers'
BREAKING CHANGE Deprecated `bindings:` and `viewBindings:` are replaced with `providers:` and `viewProviders:` Closes #7687
This commit is contained in:

committed by
Misko Hevery

parent
49fb7ef421
commit
0795dd307b
@ -26,9 +26,9 @@ export function main() {
|
||||
|
||||
function createValidator({size, metric}) {
|
||||
validator = ReflectiveInjector.resolveAndCreate([
|
||||
RegressionSlopeValidator.BINDINGS,
|
||||
bind(RegressionSlopeValidator.METRIC).toValue(metric),
|
||||
bind(RegressionSlopeValidator.SAMPLE_SIZE).toValue(size)
|
||||
RegressionSlopeValidator.PROVIDERS,
|
||||
provide(RegressionSlopeValidator.METRIC).toValue(metric),
|
||||
provide(RegressionSlopeValidator.SAMPLE_SIZE).toValue(size)
|
||||
])
|
||||
.get(RegressionSlopeValidator);
|
||||
}
|
||||
|
@ -26,8 +26,8 @@ export function main() {
|
||||
|
||||
function createValidator(size) {
|
||||
validator = ReflectiveInjector.resolveAndCreate([
|
||||
SizeValidator.BINDINGS,
|
||||
bind(SizeValidator.SAMPLE_SIZE).toValue(size)
|
||||
SizeValidator.PROVIDERS,
|
||||
provide(SizeValidator.SAMPLE_SIZE).toValue(size)
|
||||
])
|
||||
.get(SizeValidator);
|
||||
}
|
||||
|
Reference in New Issue
Block a user