import { injectable , inject , IConfig } from "@robotlegsjs/core" ; import { IContextView } from "../api/IContextView" ; import { IViewManager } from "../../viewManager/api/IViewManager" ; /**
 * This configuration file adds the ContextView to the viewManager.
 *
 * It requires that the ViewManagerExtension, ContextViewExtension
 * and a ContextView have been installed.
 */ @ injectable ( ) export class ContextViewListenerConfig implements IConfig { private _contextView : IContextView ; private _viewManager : IViewManager ; constructor ( @ inject ( IContextView ) contextView , @ inject ( IViewManager ) viewManager ) { this . _contextView = contextView ; this . _viewManager = viewManager ; } inheritDoc public configure ( ) { this . _viewManager . addContainer ( this . _contextView . view ) ; } }