This PR also changes the name of `EmptyOutletComponent` to `ɵEmptyOutletComponent`. This is because `ngcc` requires the node to retain the original name while dts bundler will rename the node is it's only exported using the aliases. Example typings files: ```ts declare class EmptyOutletComponent { } export {EmptyOutletComponent as ɵEmptyOutletComponent} ``` will be emitted as ```ts export declare class ɵEmptyOutletComponent { } ``` PR Close #28833
25 lines
746 B
TypeScript
25 lines
746 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 {Component} from '@angular/core';
|
|
|
|
/**
|
|
* This component is used internally within the router to be a placeholder when an empty
|
|
* router-outlet is needed. For example, with a config such as:
|
|
*
|
|
* `{path: 'parent', outlet: 'nav', children: [...]}`
|
|
*
|
|
* In order to render, there needs to be a component on this config, which will default
|
|
* to this `EmptyOutletComponent`.
|
|
*/
|
|
@Component({template: `<router-outlet></router-outlet>`})
|
|
export class ɵEmptyOutletComponent {
|
|
}
|
|
|
|
export {ɵEmptyOutletComponent as EmptyOutletComponent};
|