Skip to content

Commit

Permalink
Fix sample app linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrdlt committed Jan 16, 2024
1 parent 0648804 commit e45e6be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { TagCommanderService } from '../tag-commander.service/tag-commander.serv
selector: '[tcEvent]'
})
export class TcEventDirective {
@Input('tcEvent') tcEvent: any;
@Input('tcEventLabel') tcEventLabel: any;
@Input('tcEventObj') tcEventObj: any;
@Input() tcEvent: any;
@Input() tcEventLabel: any;
@Input() tcEventObj: any;
constructor(private el: ElementRef, private tcService: TagCommanderService) {
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { Directive, ElementRef, Input } from '@angular/core';
import { TagCommanderService } from '../tag-commander.service/tag-commander.service';
import {AfterViewInit, Directive, ElementRef, Input} from '@angular/core';
import {TagCommanderService} from '../tag-commander.service/tag-commander.service';

@Directive({
selector: '[tcSetVars]'
})
export class TcSetVarsDirective {
@Input('tcSetVars') tcSetVars: object;
export class TcSetVarsDirective implements AfterViewInit {
@Input() tcSetVars: object;

constructor(private el: ElementRef, private tcService: TagCommanderService) {
}

ngAfterViewInit() {
this.tcService.setTcVars(this.tcSetVars);
}
Expand Down

0 comments on commit e45e6be

Please sign in to comment.