This unified the implementations of dynamic's `downgradeNg2Component()` and static's `downgradeComponent()`.
21 lines
571 B
TypeScript
21 lines
571 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
import {Type} from '@angular/core';
|
|
import * as angular from './angular1';
|
|
|
|
|
|
export class ContentProjectionHelper {
|
|
groupProjectableNodes($injector: angular.IInjectorService, component: Type<any>, nodes: Node[]):
|
|
Node[][] {
|
|
// By default, do not support multi-slot projection,
|
|
// as `upgrade/static` does not support it yet.
|
|
return [nodes];
|
|
}
|
|
}
|