Skip to content

Instantly share code, notes, and snippets.

package main
import (
"crypto/tls"
"log"
"fmt"
"os"
"time"
)
@girokon
girokon / x.ts
Created February 22, 2017 07:35
abstrac class Base {
markAllDirty(control: AbstractControl) {
if (control.hasOwnProperty('controls')) {
control.markAsDirty(true); // mark group
let ctrl = <any>control;
for (let inner in ctrl.controls) {
this.markAllDirty(ctrl.controls[inner] as AbstractControl);
}
}