|
@@ -1,4 +1,4 @@
|
|
|
-import { Component, OnInit, ViewChild, TemplateRef } from '@angular/core';
|
|
|
+import { Component, OnInit, OnChanges, ViewChild, TemplateRef } from '@angular/core';
|
|
|
import { FormGroup } from '@angular/forms';
|
|
|
import { DynaformService } from './dynaform/services/dynaform.service';
|
|
|
|
|
@@ -9,7 +9,7 @@ import { model, meta as lazyMeta } from './_mock/testfields.v6';
|
|
|
templateUrl: './app.component.html',
|
|
|
styleUrls: ['./app.component.scss']
|
|
|
})
|
|
|
-export class AppComponent implements OnInit {
|
|
|
+export class AppComponent implements OnInit, OnChanges {
|
|
|
|
|
|
form: FormGroup;
|
|
|
meta: StringMap;
|
|
@@ -27,5 +27,9 @@ export class AppComponent implements OnInit {
|
|
|
console.dir(this.form);
|
|
|
console.dir(this.meta);
|
|
|
}
|
|
|
+
|
|
|
+ ngOnChanges() {
|
|
|
+ console.log(this.form.errors);
|
|
|
+ }
|
|
|
}
|
|
|
|