Nativescript like code sharing in Ionic (mono repo)?

Is it possible to share the “code” for a regular webpage and an ionic app in a Nativescript like fashion?
When developing Nativescript Angular applications, multiple html and css files are provided per component, one for each platform.

So could e.g. a component in an Ionic app be structured like this:

  • hello-world.component.ts
  • hello-world.component.html (the web html file)
  • hello-world.component.ionic.html (the ionic html file)
  • hello-world.component.scss (the web stylesheet)
  • hello-world.component.ionic.scss (the ionic stylesheet)