﻿/// <reference path="../../foundation.core.htmlclient/foundation.core.d.ts" />
module Foundation.Test.Implementations {
    @Core.ObjectDependency({
        name: "AppEvent"
    })
    export class TestDefaultAngularAppInitialization extends ViewModel.Implementations.DefaultAngularAppInitialization {

        protected getBaseModuleDependencies(): Array<string> {
            return ["pascalprecht.translate", "ngComponentRouter", "kendo.directives", "ngMessages", "ngMaterial", "ngAria", "ngAnimate"];
        }

        protected async configureAppModule(app: ng.IModule): Promise<void> {
            app.config(["$locationProvider", ($locationProvider: ng.ILocationProvider) => {
                $locationProvider.html5Mode(true);
            }]);
            await super.configureAppModule(app);
        }
    }
}
﻿/// <reference path="../../foundation.core.htmlclient/foundation.core.d.ts" />
module Foundation.Test.Implementations {
    @Core.ObjectDependency({
        name: "AppEvent"
    })
    export class TestDefaultAngularAppInitialization extends ViewModel.Implementations.DefaultAngularAppInitialization {

        public constructor( @Core.Inject("ClientAppProfileManager") public clientAppProfileManager: Core.ClientAppProfileManager) {
            super();
        }

        protected getBaseModuleDependencies(): Array<string> {
            let modules = ["pascalprecht.translate", "ngComponentRouter", "ngMessages", "ngMaterial", "ngAria", "ngAnimate"];
            if (this.clientAppProfileManager.getClientAppProfile().screenSize == "DesktopAndTablet")
                modules.push("kendo.directives");
            return modules;
        }

        protected async configureAppModule(app: ng.IModule): Promise<void> {
            app.config(["$locationProvider", ($locationProvider: ng.ILocationProvider) => {
                $locationProvider.html5Mode(true);
            }]);
            await super.configureAppModule(app);
        }
    }
}
Add kendo-directives module for DesktopAndTablet devices in test project
Add kendo-directives module for DesktopAndTablet devices in test project
