import { Component, Input } from '@angular/core';
import {
    FormBuilder,
    FormGroup,
    FormGroupDirective } from '@angular/forms';
import { BasePluginComponent } from '../base-plugin.component';


@Component({
    selector: 'ubuntu-config',
    template: ``,
    inputs: ['cloud', 'initialConfig']
})
export class UbuntuConfigComponent extends BasePluginComponent {
    ubuntuLaunchForm: FormGroup;

    constructor(fb: FormBuilder, parentContainer: FormGroupDirective) {
        super(fb, parentContainer);
        this.ubuntuLaunchForm = fb.group({});
    }

    get form(): FormGroup {
        return this.ubuntuLaunchForm;
    }

    get configName(): string {
        return "config_ubuntu";
    }
}

import { Component, Input } from '@angular/core';
import {
    FormBuilder,
    FormGroupDirective } from '@angular/forms';
import { BasePluginComponent } from '../base-plugin.component';


@Component({
    selector: 'ubuntu-config',
    template: ``,
    inputs: ['cloud', 'initialConfig']
})
export class UbuntuConfigComponent extends BasePluginComponent {

    constructor(fb: FormBuilder, parentContainer: FormGroupDirective) {
        super(fb, parentContainer);
    }

    get configName(): string {
        return "config_ubuntu";
    }
}

--- 
+++ 
@@ -1,6 +1,7 @@
 import { Component, Input } from '@angular/core';
 import {
     FormBuilder,
+    FormGroup,
     FormGroupDirective } from '@angular/forms';
 import { BasePluginComponent } from '../base-plugin.component';
 
@@ -11,9 +12,15 @@
     inputs: ['cloud', 'initialConfig']
 })
 export class UbuntuConfigComponent extends BasePluginComponent {
+    ubuntuLaunchForm: FormGroup;
 
     constructor(fb: FormBuilder, parentContainer: FormGroupDirective) {
         super(fb, parentContainer);
+        this.ubuntuLaunchForm = fb.group({});
+    }
+
+    get form(): FormGroup {
+        return this.ubuntuLaunchForm;
     }
 
     get configName(): string {
Implement `get form` for UbuntuConfigComponent
