Added lottie toggle
All checks were successful
Copy Files to Samba Share dev / Copy Files (push) Successful in 26s
All checks were successful
Copy Files to Samba Share dev / Copy Files (push) Successful in 26s
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { Component, computed, input, output } from '@angular/core';
|
||||
import { ToggleComponent } from '../toggle/toggle.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-hero',
|
||||
standalone: true,
|
||||
imports: [],
|
||||
imports: [ToggleComponent],
|
||||
templateUrl: './hero.component.html',
|
||||
styleUrl: './hero.component.scss'
|
||||
})
|
||||
@@ -15,6 +16,6 @@ export class HeroComponent {
|
||||
themeChange = output<string>();
|
||||
|
||||
public themeClicked(event: any) {
|
||||
this.themeChange.emit(event.target.checked ? 'dark' : 'light');
|
||||
this.themeChange.emit(event ? 'dark' : 'light');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user