Created
August 4, 2020 02:17
-
-
Save a11smiles/46f0b3878f80c70447dc21ab136f640d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { BasePageComponent } from '../base-page/base-page.component'; | |
@Component({ | |
selector: 'app-first-page', | |
templateUrl: './first-page.component.html', | |
styleUrls: ['./first-page.component.scss'] | |
}) | |
export class FirstPageComponent extends BasePageComponent implements OnInit { | |
private _clickCnt = 0; | |
ngOnInit() { | |
} | |
click() { | |
this.$gaService.logEvent('click', 'Button', 'First Page', ++this._clickCnt); | |
console.log(`Button clicked ${this._clickCnt} times.`); | |
console.log('Click for "First Page" sent!'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment