Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a11smiles/15b09aa60c6a4578e6bf957d0c43dcea to your computer and use it in GitHub Desktop.
Save a11smiles/15b09aa60c6a4578e6bf957d0c43dcea to your computer and use it in GitHub Desktop.
import { Component, OnInit } from '@angular/core';
import { GoogleAnalyticsService } from './google-analytics.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {
title = 'Google Analytics Service';
constructor(private _$gaService: GoogleAnalyticsService) { }
ngOnInit() {
this._$gaService.init();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment