fix(ivy): align discovery methods for consistency (#27117)

PR Close #27117
This commit is contained in:
Misko Hevery
2018-11-15 08:43:56 -08:00
parent ca40565f9a
commit e56c8bf8d1
21 changed files with 433 additions and 217 deletions

View File

@ -6,7 +6,8 @@
* found in the LICENSE file at https://angular.io/license
*/
import {Optional, SkipSelf, StaticProvider} from '../../di';
import {Optional, SkipSelf, StaticProvider, defineInjectable} from '../../di';
import {DefaultKeyValueDifferFactory} from './default_keyvalue_differ';
/**
@ -116,6 +117,12 @@ export interface KeyValueDifferFactory {
* @publicApi
*/
export class KeyValueDiffers {
/** @nocollapse */
static ngInjectableDef = defineInjectable({
providedIn: 'root',
factory: () => new KeyValueDiffers([new DefaultKeyValueDifferFactory()])
});
/**
* @deprecated v4.0.0 - Should be private.
*/