More TypeScript

This commit is contained in:
Mo Bitar
2020-04-10 09:21:45 -05:00
parent b5b53fdc43
commit 16bde8d1d4
11 changed files with 106 additions and 144 deletions

View File

@@ -40,7 +40,7 @@ export class WebApplication extends SNApplication {
private $compile?: ng.ICompileService
private scope?: ng.IScope
private onDeinit?: (app: SNApplication) => void
private onDeinit?: (app: WebApplication) => void
private webServices!: WebServices
private currentAuthenticationElement?: JQLite
@@ -49,7 +49,7 @@ export class WebApplication extends SNApplication {
$compile: ng.ICompileService,
$timeout: ng.ITimeoutService,
scope: ng.IScope,
onDeinit: () => void
onDeinit: (app: WebApplication) => void
) {
const namespace = '';
const deviceInterface = new WebDeviceInterface(namespace, $timeout);
@@ -148,7 +148,9 @@ export class WebApplication extends SNApplication {
const scope = this.scope!.$new(true) as PasswordWizardScope;
scope.type = type;
scope.application = this;
const el = this.$compile!("<password-wizard application='application' type='type'></password-wizard>")(scope);
const el = this.$compile!(
"<password-wizard application='application' type='type'></password-wizard>"
)(scope as any);
angular.element(document.body).append(el);
}