major
parent
35e0ac01a6
commit
85053638e1
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Document Section
|
||||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
Image Section
|
||||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
Member Section
|
||||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue