angular-cn/modules/@angular/router/src/router_outlet_map.ts

19 lines
481 B
TypeScript
Raw Normal View History

/**
* @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
*/
2016-06-08 14:13:41 -04:00
import {RouterOutlet} from './directives/router_outlet';
2016-05-24 16:21:55 -04:00
/**
* @experimental
*/
2016-05-24 16:21:55 -04:00
export class RouterOutletMap {
/** @internal */
_outlets: {[name: string]: RouterOutlet} = {};
registerOutlet(name: string, outlet: RouterOutlet): void { this._outlets[name] = outlet; }
}