From 553d41b5b67bb4c855e4d446f9e224bd181fcb31 Mon Sep 17 00:00:00 2001 From: Jamil Omar Date: Fri, 6 Sep 2019 11:46:04 -0400 Subject: [PATCH] fix: logging service in angular-template --- templates/angular-package/package.json | 3 ++- .../angular-package/ui/app/core/usage/usage.component.ts | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/templates/angular-package/package.json b/templates/angular-package/package.json index ee7cdae..23aabc4 100644 --- a/templates/angular-package/package.json +++ b/templates/angular-package/package.json @@ -41,7 +41,7 @@ "@angular/forms": "^8.0.2", "@angular/router": "^8.0.2", "@labshare/ngx-core-services": "^1.0.0", - "@labshare/ngx-forms": "^7.1.1", + "@labshare/ngx-forms": "^8.0.0", "@labshare/ngx-stateful": "^2.0.9", "@labshare/stateful-components": "^2.0.1", "@ng-bootstrap/ng-bootstrap": "^4.1.0", @@ -49,6 +49,7 @@ "acorn": "^6.2.0", "bootstrap": "^4.3.1", "core-js": "^3.0.1", + "electron": "^6.0.7", "lodash": "^4.17.15", "ngx-quill": "^4.8.0", "quill": "^1.3.6", diff --git a/templates/angular-package/ui/app/core/usage/usage.component.ts b/templates/angular-package/ui/app/core/usage/usage.component.ts index c369754..9758179 100644 --- a/templates/angular-package/ui/app/core/usage/usage.component.ts +++ b/templates/angular-package/ui/app/core/usage/usage.component.ts @@ -4,7 +4,7 @@ import {Component} from '@angular/core'; import {OnInit} from '@angular/core'; -import {UsageService} from '@labshare/ngx-core-services'; +import {LoggingService} from '@labshare/ngx-core-services'; @Component({ selector: 'app-usage', @@ -15,14 +15,14 @@ export class UsageComponent implements OnInit { public message = `Newapp2's usage page`; public isUsageEnable = false; - constructor(private usage: UsageService) {} + constructor(private loggingService: LoggingService) {} ngOnInit() { - this.isUsageEnable = this.usage.hasUrl(); + this.isUsageEnable = this.loggingService.hasUrl(); this.message = `Usage is ` + (this.isUsageEnable === true ? `On` : `Off`); } onSendUsage() { - this.usage.send({event: 'test', info: 'sending data'}); + this.loggingService.info({event: 'test', message: 'sending data'}); } }