build: remove unneeded style code for ngClass and ngStyle (#34998)

With the release of Flex Layout v9.0.0-beta.28, some added code
after the recent styling refactor is no longer needed.

PR Close #34998
This commit is contained in:
Adam
2020-01-27 16:27:43 -06:00
committed by Andrew Kushnir
parent 95383ee6a9
commit 17650523a8
4 changed files with 1 additions and 25 deletions

View File

@ -157,11 +157,4 @@ export class NgClass implements DoCheck {
});
}
}
// TODO(misko): Delete this code after angula/flex-layout stops depending on private APIs
// We need to export this to make angular/flex-layout happy
// https://github.com/angular/flex-layout/blob/ec7b57eb6adf59ecfdfff1de5ccf1ab2f6652ed3/src/lib/extended/class/class.ts#L9
setClass(value: string) { this.klass = value; }
setNgClass(value: any) { this.ngClass = value; }
applyChanges() { this.ngDoCheck(); }
}

View File

@ -85,10 +85,4 @@ export class NgStyle implements DoCheck {
changes.forEachAddedItem((record) => this._setStyle(record.key, record.currentValue));
changes.forEachChangedItem((record) => this._setStyle(record.key, record.currentValue));
}
// TODO(misko): Delete this code after angula/flex-layout stops depending on private APIs
// We need to export this to make angular/flex-layout happy
// https://github.com/angular/flex-layout/blob/ec7b57eb6adf59ecfdfff1de5ccf1ab2f6652ed3/src/lib/extended/class/class.ts#L9
setNgStyle(value: any) { this.ngStyle = value; }
applyChanges() { this.ngDoCheck(); }
}