DEV Community

GaurangDhorda
GaurangDhorda

Posted on

Angular @Directives @Input() binding properly binding type understanding

In angular when you use directive`s @input() without [ ] bracket, by default it is considered as HTML string property, and When set with [ ] is considered as javascript binding and we get actual what type we want to.

angular #javascript #angulartip #typescript

https://t.co/cEzWeRpgSR

Alt Text

Top comments (0)