Set the rounded corner in Angular Textbox component

21 Sep 20223 minutes to read

Render the TextBox with rounded corner by adding the e-corner class to the input parent element.

This rounded corner visible only in box model input component

import { Component } from '@angular/core';

    selector: 'app-root',
    template: `<div class="wrap">
                <div class="e-input-group e-corner">
                    <input class="e-input" type="text" (focus)="focusIn($"
                    placeholder = "Enter Date" (blur)="focusOut($"/>
                    <span class="e-input-group-icon e-input-popup-date" ></span>
                <div class="e-float-input e-input-group e-corner">
                    <input type='text' required />
                    <span class="e-float-line"></span>
                    <label class="e-float-text">Enter Date</label>
                    <span class="e-input-group-icon e-input-popup-date" ></span>

export class AppComponent {
    public focusIn(target: any): void {

    public focusOut(target: any): void {
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';

 * Module
    imports: [
    declarations: [AppComponent],
    bootstrap: [AppComponent]
export class AppModule { }
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { enableProdMode } from '@angular/core';
import { AppModule } from './app.module';