import { Component, OnInit } from '@angular/core';
import { appComponentAnimations } from 'src/app/shared/animations/animations';
import { AppComponent } from './app.component';

// Angular could not declare the same component in two modules. We bootsraps from AppComponent, but it's features does not
// work from the shared module. So we have to put it into app, and mobile-app modules. So divide it's class to trick Angular
@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss'],
  animations: appComponentAnimations,
})
export class MobileAppComponent extends AppComponent implements OnInit {
  ngOnInit() {
    super.ngOnInit();
    this.isMobileModule = true;
  }
}
