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
refactor: separate NativeScriptCommonModule from NativeScriptModule
All common providers, such as CommonModule (from @angular/common), Frame, Page, Device and Modals are moved from NativeScriptModule to NativeScriptCommonModule. It can be required from "nativescript-angular/common". The NativeScriptRouterModule also imports the common module now.
Importing NativeScriptModule more than once causes reinstantiating of
the NativeScriptRenderer, which breaks animations.
BREAKING CHANGES:
NativeScriptModule should be imported only in the root application
module (usually named AppModule). It provides essential the Renderer, ModuleLoader and exports the
ApplicationModule.
All other NgModules in the app (both feature and lazy-loaded ones)
should import the NativeScriptCommonModule instead.
The behaviour is alligned with BrowserModule and CommonModule in web
Angular apps. https://angular.io/guide/ngmodule-faq#q-browser-vs-common-module
0 commit comments