@firestitch/form 12.0.3 → 12.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/directives/form/form.directive.d.ts +3 -0
- package/bundles/firestitch-form.umd.js +3 -0
- package/bundles/firestitch-form.umd.js.map +1 -1
- package/esm2015/app/directives/form/form.directive.js +4 -1
- package/fesm2015/firestitch-form.js +3 -0
- package/fesm2015/firestitch-form.js.map +1 -1
- package/package.json +1 -1
|
@@ -66,6 +66,9 @@ export declare class FsFormDirective implements OnInit, OnDestroy, AfterContentI
|
|
|
66
66
|
ngAfterContentInit(): void;
|
|
67
67
|
ngOnDestroy(): void;
|
|
68
68
|
createSnapshot(): void;
|
|
69
|
+
getSnapshot(): {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
};
|
|
69
72
|
reset(): void;
|
|
70
73
|
clear(): void;
|
|
71
74
|
dirty(): void;
|
|
@@ -660,6 +660,9 @@
|
|
|
660
660
|
FsFormDirective.prototype.createSnapshot = function () {
|
|
661
661
|
this._snapshot = this.ngForm.value;
|
|
662
662
|
};
|
|
663
|
+
FsFormDirective.prototype.getSnapshot = function () {
|
|
664
|
+
return this._snapshot || {};
|
|
665
|
+
};
|
|
663
666
|
FsFormDirective.prototype.reset = function () {
|
|
664
667
|
var _this = this;
|
|
665
668
|
this.ngForm.resetForm();
|