Corrent InputComponentManagerService.

This commit is contained in:
Manuel Friedli 2018-08-31 22:56:18 +02:00
parent c4effd4f41
commit 82c371956b
5 changed files with 21 additions and 4 deletions

View file

@ -1,7 +1,7 @@
import {AppComponent} from './app.component'; import {AppComponent} from './app.component';
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms'; import {FormsModule} from '@angular/forms';
import {InputComponentManagerService} from './inputcomponentmanager.service'; import {InputComponentManagerService} from './input-component-manager.service';
import {Step} from './step'; import {Step} from './step';
import {ConverterRegistryService} from './converter-registry.service'; import {ConverterRegistryService} from './converter-registry.service';
import {Converter} from './converter/converter'; import {Converter} from './converter/converter';

View file

@ -1,6 +1,6 @@
import {Component, OnInit} from '@angular/core'; import {Component, OnInit} from '@angular/core';
import {ConverterRegistryService} from './converter-registry.service'; import {ConverterRegistryService} from './converter-registry.service';
import {InputComponentManagerService} from './inputcomponentmanager.service'; import {InputComponentManagerService} from './input-component-manager.service';
import {Step} from './step'; import {Step} from './step';
import {Converter} from './converter/converter'; import {Converter} from './converter/converter';

View file

@ -2,7 +2,7 @@ import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core'; import {NgModule} from '@angular/core';
import {AppComponent} from './app.component'; import {AppComponent} from './app.component';
import {ConverterRegistryService} from './converter-registry.service'; import {ConverterRegistryService} from './converter-registry.service';
import {InputComponentManagerService} from './inputcomponentmanager.service'; import {InputComponentManagerService} from './input-component-manager.service';
import {NativeLibraryWrapperService} from './nativelibrarywrapper.service'; import {NativeLibraryWrapperService} from './nativelibrarywrapper.service';
import {FormsModule} from '@angular/forms'; import {FormsModule} from '@angular/forms';
import {VersionComponent} from './version/version.component'; import {VersionComponent} from './version/version.component';

View file

@ -0,0 +1,15 @@
import { TestBed, inject } from '@angular/core/testing';
import { InputComponentManagerService } from './input-component-manager.service';
describe('InputComponentManagerService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [InputComponentManagerService]
});
});
it('should be created', inject([InputComponentManagerService], (service: InputComponentManagerService) => {
expect(service).toBeTruthy();
}));
});

View file

@ -1,7 +1,9 @@
import {Injectable} from '@angular/core'; import {Injectable} from '@angular/core';
import {Step} from './step'; import {Step} from './step';
@Injectable() @Injectable({
providedIn: 'root'
})
export class InputComponentManagerService { export class InputComponentManagerService {
private components: Step[] = []; private components: Step[] = [];