2016-06-23 12:47:54 -04:00
|
|
|
/**
|
|
|
|
* @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
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/**
|
2016-06-28 17:49:29 -04:00
|
|
|
* @stable
|
2016-06-27 15:27:23 -04:00
|
|
|
*/
|
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; }
|
2016-08-01 19:56:38 -04:00
|
|
|
|
|
|
|
removeOutlet(name: string): void { this._outlets[name] = undefined; }
|
2016-05-24 16:21:55 -04:00
|
|
|
}
|