ngOnInit()

in app/src/app/app.component.ts [20:25]


  ngOnInit() {
    const currentTheme = localStorage.getItem("theme");
    if (currentTheme == this.otherTheme) {
      this.switchTheme(this.otherTheme);
    }
  }