ng-implementation/sae-csc/src/app/pages/main/main.ts

42 lines
1.1 KiB
TypeScript
Raw Normal View History

2025-08-14 14:58:41 +02:00
import {Component} from '@angular/core';
2025-09-15 16:09:20 +02:00
import {TranslateTexts} from '../../shared/translate-texts/translate-texts';
2025-09-02 13:58:22 +02:00
import {FiltersGroup} from 'sae-lib/filters/filters-group/filters-group';
2025-08-07 16:17:13 +02:00
import {BottomNavigation} from '../../shared/navigation/bottom-navigation/bottom-navigation';
2025-08-22 11:57:56 +02:00
import {FeedbackButton} from 'sae-lib/buttons/feedback-button/feedback-button';
2025-09-02 14:16:41 +02:00
import {BotTalks} from 'sae-lib/chatbot/bot-talks/bot-talks';
2025-09-10 16:02:31 +02:00
import {Store} from '@ngrx/store';
import {StateInterface} from '../../redux/reducers';
2025-08-07 16:17:13 +02:00
2025-08-07 14:24:23 +02:00
@Component({
selector: 'app-main',
imports: [
2025-08-07 16:17:13 +02:00
TranslateTexts,
FiltersGroup,
2025-08-14 14:58:41 +02:00
BottomNavigation,
2025-09-02 14:16:41 +02:00
FeedbackButton,
BotTalks
2025-08-07 14:24:23 +02:00
],
templateUrl: './main.html',
styleUrl: './main.scss'
})
export class Main {
2025-09-10 16:02:31 +02:00
public appState: any = {};
constructor(private store: Store<StateInterface>) {
this.store.select(state => state.app).subscribe(app => {
this.appState = app;
});
}
onSelectedChoicesChange(e: any) {
console.log('onSelectedChoicesChange', e);
}
onAvailableChoicesChange(e: any) {
console.log('onSelectedChoicesChange', e);
}
2025-08-07 14:24:23 +02:00
}