Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getDefaultFoundation() {
const adapter: MDCTextFieldCharacterCounterAdapter = {
setContent: (content: string) => this.elementRef.nativeElement.textContent = content
};
return new MDCTextFieldCharacterCounterFoundation(adapter);
}
getDefaultFoundation() {
return new MDCTextFieldCharacterCounterFoundation({
setContent: (content: string) => {
this.setState({ content });
}
});
}