Switch buffer to different file with the same name and different type

Hey there guys,
First-time poster. First off, thank you so much for the excellent videos, Chris and Ben. I watched Ben using a command in the Vim trail to quickly get to the model files using a command. I want to write a command/plugin where I want to switch from my existing file to another angular file that has the same name but has a different extension. Say home.component.ts is the current file in my buffer. I want to quickly switch to the markup, home.component.html which exists in the same directory as the other file, how do I go about doing that?