In this article, we will learn how to pass data from child component to parent component using @Output() and EventEmitter…