Moved the use of store to services

This commit is contained in:
Giuseppe
2018-10-11 14:18:55 +02:00
parent d5c5749784
commit d2e522749d
13 changed files with 182 additions and 142 deletions

View File

@@ -1,10 +1,7 @@
import { Component, Injector, Input, OnInit, ViewChild } from '@angular/core';
import { Store } from '@ngrx/store';
import { SectionsDirective } from '../sections.directive';
import { SectionDataObject } from '../models/section-data.model';
import { SubmissionState } from '../../submission.reducers';
import { rendersSectionType } from '../sections-decorator';
import { SectionsType } from '../sections-type';
import { AlertType } from '../../../shared/alerts/aletrs-type';
@@ -26,7 +23,7 @@ export class SectionContainerComponent implements OnInit {
@ViewChild('sectionRef') sectionRef: SectionsDirective;
constructor(private injector: Injector, private store: Store<SubmissionState>) {
constructor(private injector: Injector) {
}
ngOnInit() {