module Sfx { export class NavbarController { constructor ( private refreshSvc , private routes , private $window ) { } public get isRefreshing ( ) : boolean { return this . refreshSvc . isRefreshing ; } public refreshAll ( ) { this . refreshSvc . refreshAll ( ) ; } public navigateToCluster ( ) { this . routes . navigate ( ( ) => this . routes . getClusterViewPath ( ) ) ; } } ( function ( ) { let module = angular . module ( "navbarController" , [ "refreshService" , "routes" ] ) ; module . controller ( "NavbarController" , [ "refresh" , "routes" , "$window" , NavbarController ] ) ; } ) ( ) ; }