You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the recommended way to build shared modules between NativeScript and Web is to use build time solution with conditionally using moduleName.module.tns.ts for NativeScript and moduleName.module.ts for web.
This is particularly needed in the scenarios when we share commonly used set of UI Components. E.g. we might wanna have a unified layer of components like: my-datepicker, my-button, my-table which are implemented by e.g. ng-semantic on web and hand coded for NativeScript but they have the same data contract and therefore other vertical cross platform feature modules can import them consistently on both platforms. I can only think of that build time solution to support AOT compilation.
One of the recommended way to build shared modules between NativeScript and Web is to use build time solution with conditionally using
moduleName.module.tns.ts
for NativeScript andmoduleName.module.ts
for web.This is particularly needed in the scenarios when we share commonly used set of UI Components. E.g. we might wanna have a unified layer of components like: my-datepicker, my-button, my-table which are implemented by e.g. ng-semantic on web and hand coded for NativeScript but they have the same data contract and therefore other vertical cross platform feature modules can import them consistently on both platforms. I can only think of that build time solution to support AOT compilation.
Same approach is used by this seed project https://github.com/TeamMaestro/angular-native-seed
Do you have any plans to support this scenario? Pottentially be able to generate shared module using cli?
The text was updated successfully, but these errors were encountered: