master
sergeybodin 2023-08-31 12:50:56 +03:00
parent 35e0ac01a6
commit 85053638e1
11 changed files with 66 additions and 0 deletions

View File

@ -21,6 +21,9 @@
<contact-section [section]="section" *ngSwitchCase="'page-section-contacts'"></contact-section>
<feedback-section [section]="section" *ngSwitchCase="'page-section-feedback'"></feedback-section>
<maps-section [section]="section" *ngSwitchCase="'page-section-maps'"></maps-section>
<member-section [section]="section" *ngSwitchCase="'page-section-list-members'"></member-section>
<image-section [section]="section" *ngSwitchCase="'page-section-image'"></image-section>
<document-section [section]="section" *ngSwitchCase="'page-section-document'"></document-section>
<p *ngSwitchDefault>section {{type?.name}} is undefined</p>
</div>
</div>

View File

@ -20,6 +20,9 @@ import {IframeSectionComponent} from "@app/_modules/pages/sections/types/basic/i
import {FeedbackSectionComponent} from "@app/_modules/pages/sections/types/basic/feedback/feedback-section.component";
import {ContactSectionComponent} from "@app/_modules/pages/sections/types/basic/contact/contact-section.component";
import {MapsSectionComponent} from "@app/_modules/pages/sections/types/basic/maps/maps-section.component";
import {MemberSectionComponent} from "@app/_modules/pages/sections/types/basic/member/member-section.component";
import {ImageSectionComponent} from "@app/_modules/pages/sections/types/basic/image/image-section.component";
import {DocumentSectionComponent} from "@app/_modules/pages/sections/types/basic/document/document-section.component";
@NgModule({
imports: [
@ -45,6 +48,9 @@ import {MapsSectionComponent} from "@app/_modules/pages/sections/types/basic/map
FeedbackSectionComponent,
ContactSectionComponent,
MapsSectionComponent,
MemberSectionComponent,
ImageSectionComponent,
DocumentSectionComponent,
],
exports: [
PageSectionsComponent,

View File

@ -0,0 +1 @@
Document Section

View File

@ -0,0 +1,18 @@
import {Component, Input} from '@angular/core';
@Component({
selector: 'document-section',
templateUrl: 'document-section.component.html',
styleUrls: ['document-section.component.scss']
})
export class DocumentSectionComponent {
@Input() section: any;
constructor(
) {
}
ngOnInit() {
console.log(this.section);
}
}

View File

@ -0,0 +1 @@
Image Section

View File

@ -0,0 +1,18 @@
import {Component, Input} from '@angular/core';
@Component({
selector: 'image-section',
templateUrl: 'image-section.component.html',
styleUrls: ['image-section.component.scss']
})
export class ImageSectionComponent {
@Input() section: any;
constructor(
) {
}
ngOnInit() {
console.log(this.section);
}
}

View File

@ -0,0 +1 @@
Member Section

View File

@ -0,0 +1,18 @@
import {Component, Input} from '@angular/core';
@Component({
selector: 'member-section',
templateUrl: 'member-section.component.html',
styleUrls: ['member-section.component.scss']
})
export class MemberSectionComponent {
@Input() section: any;
constructor(
) {
}
ngOnInit() {
console.log(this.section);
}
}