-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: reimplement NativeScriptAnimationsModule to be compliant with the new NG Animations' API * fix(page-router-outlet): don't run change detection every time an outlet is activated * 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. The NativeScript module now provides only essential parts such as Renderer and ModuleLoader. It also re-exports the NativeScriptCommonModule. It can be required from "nativescript-angular/common". The NativeScriptRouterModule also Reason: 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). 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. angular.io/guide/ngmodule-faq#q-browser-vs-common-module Migration steps: In all NgModules, instead of the root one, replace: ``` import { NativeScriptModule } from "nativescript-angular/nativescript.module"; … @NgModule({ imports: [ NativeScriptModule, ] … }) ``` with: ``` import { NativeScriptCommonModule } from "nativescript-angular/common"; … @NgModule({ imports: [ NativeScriptCommonModule, ] … })
- Loading branch information
Showing
31 changed files
with
3,021 additions
and
434 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
eb3fd81
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rosen-vladimirov likes this!