ngx-admin/src/app/app.component.ts

22 lines
532 B
TypeScript
Raw Normal View History

2017-04-11 19:09:02 +03:00
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
2017-09-20 13:55:34 +03:00
import { Component, OnInit } from '@angular/core';
import { AnalyticsService } from './@core/utils/analytics.service';
2017-04-11 19:09:02 +03:00
@Component({
2017-05-06 15:35:15 +03:00
selector: 'ngx-app',
2017-04-13 14:24:23 +03:00
template: '<router-outlet></router-outlet>',
2017-04-11 19:09:02 +03:00
})
2017-09-20 13:55:34 +03:00
export class AppComponent implements OnInit {
constructor(private analytics: AnalyticsService) {
}
ngOnInit(): void {
this.analytics.trackPageViews();
}
2017-04-11 19:09:02 +03:00
}