'use strict' ; export const ngConfig = angular . module ( 'teambition' ) . config ( [ '$ionicConfigProvider' , '$compileProvider' , '$httpProvider' , ( $ionicConfigProvider , $compileProvider , $httpProvider ) => { $httpProvider . defaults . withCredentials = true ; $ionicConfigProvider . views . forwardCache ( false ) ; $ionicConfigProvider . views . maxCache ( 0 ) ; $ionicConfigProvider . views . transition ( 'ios' ) ; $ionicConfigProvider . tabs . style ( 'standard' ) ; $ionicConfigProvider . tabs . position ( 'bottom' ) ; $ionicConfigProvider . navBar . alignTitle ( 'center' ) ; $ionicConfigProvider . navBar . positionPrimaryButtons ( 'left' ) ; $compileProvider . imgSrcSanitizationWhitelist ( /^\s*(https?|ftp|file|blob|wxlocalresource):|data:image\// ) ; } ] ) . decorator ( '$controller' , [ '$delegate' , ( $delegate ) => { return function ( constructor , locals ) { const controller = $delegate . apply ( null , arguments ) ; return angular . extend ( function ( ) { const ViewNames = typeof constructor === 'string' ? constructor . split ( ' ' ) : null ; const $scope = locals . $scope ; if ( $scope && ViewNames && ViewNames . length > 1 ) { locals . $scope . ViewName = ViewNames [ 0 ] ; } return controller ( ) ; } , controller ) ; } ; } ] ) ;