|
@@ -32,22 +32,22 @@ const fieldThree = new fmd.BasicField({
|
|
|
value: 'C'
|
|
|
});
|
|
|
|
|
|
-let formMetaDataObj= {
|
|
|
+const formMetaDataObj = {
|
|
|
fieldOne,
|
|
|
fieldTwo,
|
|
|
fieldThree
|
|
|
-}
|
|
|
+};
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
@Component({
|
|
|
- selector: 'app-root',
|
|
|
- templateUrl: './app.component.html',
|
|
|
- styleUrls: ['./app.component.scss']
|
|
|
+ selector: 'app-root',
|
|
|
+ templateUrl: './app.component.html',
|
|
|
+ styleUrls: ['./app.component.scss']
|
|
|
})
|
|
|
export class AppComponent implements OnInit {
|
|
|
|
|
|
form: FormGroup;
|
|
|
-
|
|
|
+
|
|
|
modifiers = ['Starts With', 'Contains', 'Matches'];
|
|
|
transformerFunctions: ValueTransformer = {
|
|
|
inputFn: val => {
|
|
@@ -81,7 +81,7 @@ export class AppComponent implements OnInit {
|
|
|
}
|
|
|
|
|
|
labels = ['Feature One', 'Allowed', 'Protected'];
|
|
|
-
|
|
|
+
|
|
|
formMetaDataObj = formMetaDataObj;
|
|
|
|
|
|
@ViewChild('testTemplate', { read: TemplateRef })
|
|
@@ -93,7 +93,6 @@ export class AppComponent implements OnInit {
|
|
|
}
|
|
|
|
|
|
ngOnInit() {
|
|
|
- /*
|
|
|
this.form = this.fb.group({
|
|
|
testVal: '%lovely%',
|
|
|
testCheckbutton: true,
|
|
@@ -104,7 +103,6 @@ export class AppComponent implements OnInit {
|
|
|
}),
|
|
|
dynaformtest: this.fb.group(extractFormGroupData(formMetaDataObj))
|
|
|
});
|
|
|
- */
|
|
|
}
|
|
|
}
|
|
|
|