how to use subject in angular

let's implement how to use subject in angular, first we create 2 component , component1 and...