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

24 lines
665 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';
2019-12-20 11:09:37 +03:00
import { SeoService } from './@core/utils/seo.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 {
2019-12-20 11:09:37 +03:00
constructor(private analytics: AnalyticsService, private seoService: SeoService) {
2017-09-20 13:55:34 +03:00
}
ngOnInit(): void {
this.analytics.trackPageViews();
2019-12-20 11:09:37 +03:00
this.seoService.trackCanonicalChanges();
2017-09-20 13:55:34 +03:00
}
2017-04-11 19:09:02 +03:00
}