Angular Notes
Angular Notes
Combination of both is called two way data binding. --> ([(ngModel)] = "data")
For two way data binding to work, we need to enable ngModel directive. this is done
by adding FormsModule to the imports[] array in the app module.
Directives:
Directives are instructions to the dom
@input() --> input decorator ( used to pass data from parent to child component)
@output() --> output decorator ( used to pass data from child to parent component)
these decorators are used to pass the data between the components.
event emiter helps to call the parent function from the child element