Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
fix: logging service in angular-template
Browse files Browse the repository at this point in the history
  • Loading branch information
JamilOmar committed Sep 6, 2019
1 parent 2aff104 commit 553d41b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion templates/angular-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,15 @@
"@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",
"@types/lodash": "^4.14.136",
"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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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'});
}
}

0 comments on commit 553d41b

Please sign in to comment.