Solution: Handle Multiple Elements with Directives
Here’s the solution to the task on handling multiple elements with directives as well as the expected result and explanation.
We'll cover the following...
The solution relies on these four major points:
- Using
NgForto display inputs. - Providing a directive that gathers
valuefrom the single input. - Using
ViewChildrento access all inputs and get their values. - Getting the values.
Explanation
... Ask