require("../core/core.module");

import { provide } from "../core";
import { FooterComponentEditorComponent } from "./footer-component-editor.component";
import { FooterComponentListComponent } from "./footer-component-list.component";
import { FooterComponentComponent } from "./footer-component.component";
import { FooterComponentsContainerComponent } from "./footer-components-container.component";
import { FooterComponentActionCreator } from "./footer-component.actions";
import { FooterComponentService } from "./footer-component.service";
import *  as reducers from "./footer-component.reducers";

var app = (<any>angular.module("app.footerComponent", [
    "app.core"    
]));
app.component(FooterComponentListComponent);
app.component(FooterComponentComponent);
app.component(FooterComponentsContainerComponent);

app.config(["reducersProvider", reducersProvider => {	
    for (var reducer in reducers) { reducersProvider.configure(reducers[reducer]); }
}]);

provide(app,FooterComponentActionCreator);
provide(app,FooterComponentService);
app.component(FooterComponentEditorComponent);