To Hide/show a element based on the Radio input selection is can be achieved using ngModel Directive two way binding 1. First we need to import the form Module in…
Author
Amey Raut
How to get value from the input element using the template reference variable – Angular
by Amey Raut
A template reference variable is used to give reference to a DOM Element. The template reference variable can then be used anywhere inside the template. This can be done using…
you can use change event to get the selected checkbox value
it is easy to get value of selected option in ts file using (change) event binding
There is multiple event binding can be add in angular. Click Event to call function in .ts file on Click event “onBtnClick()” function is called. Click Event to call function…
Class binding can be used to set a class property of an element. there are multiple ways to bind the class to the element. Single class binding based on the…
Scope of var var declarations are globally scoped or function/locally scoped. It is globally scoped when a var variable is declared outside a function. for example “myText” variable declare outside scope will…