Sep 7, 2018 · 1 min read
In this case you might be better off creating two files containing the routes for the web and the mobile app. Then when you create the component just make sure the class file uses the .tns extension i.e. hello.component.tns.ts
Here is a bit of info on the topic in our documentation:
https://docs.nativescript.org/angular/code-sharing/platform-specific-components