Questions tagged [nativescript-codesharing]

Use this tag for question about the Code Sharing templates provided by the NativeScript @nativescript/schematics package.

In NativeScript, Code Sharing is a way to keep the code for a web and a mobile app in a single place. By using the @nativescript/schematics package created in collaboration by the Angular and NativeScript teams, it is possible to build both web and mobile apps from a single project.

This in turn promotes code sharing between the various versions of an app, meaning that only platform-specific code has to be spitted into separate files.

For further details, please refer to the official NativeScript documentation about Code Sharing that can be found at this link.

16 questions
0
votes
0 answers

Nativescript-Angular code sharing: How do I create platform specific modules?

Imagine I have OrderComponent and CustomerComponent that represent two screens. In the web version you can create a new customer while in the order screen by launching the customer component inside a popup. So OrderComponent references…
1
2