What does this line do? @Hostbinding(‘[class.valid]’) is valid?
Answer / Manindra Kumar
This line, in an Angular component, uses the @HostBinding decorator to bind a property of the component to a CSS class on its host element. If the expression inside the square brackets ([class.valid]) evaluates to true, the class 'valid' will be added to the host element.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the differences between one-way binding and two-way binding.
What is directive in angularjs?
How to convert the input to lowercase or uppercase in angular 2?
How to define multiple restrict options on a directive in angularjs?
Is ngmodel deprecated?
What is local reference in angular?
Wht do we use directive?
what is di (dependency injection) and how an object or function can get a hold of its dependencies?
Is angular backward compatible?
What is change detection strategy in angular?
What is an isolated scope?
What is dependency injection and how does it work?