removed sample
This commit is contained in:
parent
643495781f
commit
d3915fda9f
|
@ -65,9 +65,6 @@
|
|||
<!--this should be invisible -->
|
||||
<app-main-sign-in [ngClass]="'invisible'"></app-main-sign-in>
|
||||
|
||||
<!--
|
||||
<sample-form></sample-form>
|
||||
-->
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -9,9 +9,6 @@ import { MainSignInComponent } from './login/main-sign-in/main-sign-in.component
|
|||
import { AutocompleteRemoteComponent } from './form/fields/autocomplete-remote/autocomplete-remote.component';
|
||||
|
||||
|
||||
import { SampleFormComponent } from './sample-form/sample-form.component';
|
||||
|
||||
|
||||
declare var $ :any;
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
|
|
|
@ -70,7 +70,6 @@ import { UserWorkspaceComponent } from './user-workspace/user-workspace.componen
|
|||
import { AutocompleteRemoteComponent } from './form/fields/autocomplete-remote/autocomplete-remote.component';
|
||||
|
||||
import { Ng4LoadingSpinnerModule } from 'ng4-loading-spinner';
|
||||
import { SampleFormComponent } from './sample-form/sample-form.component';
|
||||
|
||||
|
||||
|
||||
|
@ -101,7 +100,7 @@ import { SampleFormComponent } from './sample-form/sample-form.component';
|
|||
DmpTableFilterPipe,
|
||||
DatasetTableFilterPipe,
|
||||
DatasetStatusFilterPipe,
|
||||
StatusToString, SampleFormComponent
|
||||
StatusToString
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
|
||||
<form [formGroup]="sampleForm" novalidate>
|
||||
|
||||
<!--
|
||||
<autocomplete-remote [form]="sampleForm" [formCtrlName]="'a1'" [label]="'Please select a datarepo'" [url]="'https://eestore.paas2.uninett.no/api/datarepo/'" ></autocomplete-remote>
|
||||
<autocomplete-remote [form]="sampleForm" [formCtrlName]="'a2'" [label]="'Please select a projectrepo'" [url]="'https://eestore.paas2.uninett.no/api/projectrepo/'" ></autocomplete-remote>
|
||||
<autocomplete-remote [form]="sampleForm" [formCtrlName]="'a3'" [label]="'Please select an organizationrepo'" [url]="'https://eestore.paas2.uninett.no/api/organizationrepo/'" ></autocomplete-remote>
|
||||
<autocomplete-remote [form]="sampleForm" [formCtrlName]="'a4'" [label]="'Please select a personrepo'" [url]="'https://eestore.paas2.uninett.no/api/personrepo/'" ></autocomplete-remote>
|
||||
-->
|
||||
{{sampleForm.value | json }}
|
||||
</form>
|
|
@ -1,25 +0,0 @@
|
|||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { SampleFormComponent } from './sample-form.component';
|
||||
|
||||
describe('SampleFormComponent', () => {
|
||||
let component: SampleFormComponent;
|
||||
let fixture: ComponentFixture<SampleFormComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ SampleFormComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(SampleFormComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should be created', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
|
@ -1,30 +0,0 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
import { FormControl, FormGroup } from '@angular/forms';
|
||||
|
||||
import { AutocompleteRemoteComponent } from '../form/fields/autocomplete-remote/autocomplete-remote.component';
|
||||
|
||||
@Component({
|
||||
selector: 'sample-form',
|
||||
templateUrl: './sample-form.component.html',
|
||||
styleUrls: ['./sample-form.component.css']
|
||||
})
|
||||
export class SampleFormComponent implements OnInit {
|
||||
|
||||
|
||||
sampleForm : any;
|
||||
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
this.sampleForm = new FormGroup ({
|
||||
a1: new FormControl(),
|
||||
a2: new FormControl(),
|
||||
a3: new FormControl(),
|
||||
a4: new FormControl()
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue