Skip to content

feat(router): enable flexible page router outlets #1298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
May 4, 2018
Merged

feat(router): enable flexible page router outlets #1298

merged 19 commits into from
May 4, 2018

Conversation

MartoYankov
Copy link
Contributor

  • Enable multiple named page-router-outlets at root level.
  • Handle back navigation with multiple named outlets.
  • Enable navigation inside modal view.

@MartoYankov
Copy link
Contributor Author

test

3 similar comments
@MartoYankov
Copy link
Contributor Author

test

@SvetoslavTsenov
Copy link
Contributor

test

@MartoYankov
Copy link
Contributor Author

test

@MartoYankov
Copy link
Contributor Author

test branch_testsappng#ns-40

vakrilov and others added 18 commits April 27, 2018 15:08
Angular application is started with `application.run()` which means the the root view of the app will be the root view of the `AppComponent`.
Previous behavior: Anagular application was started with `application.start()` - this aways creates a root `Frame`. The platfrom bootstrap was always creating the inital `Page` and loading the `AppComponent` inside.

The `<page-router-outlet>` will create a Frame as a native element and will create a page for each component activated in it (including the inital page).
Rename RootView class to AppHostView class.
Expose ngAppRoot property of AppHostView class.
Add modal-nested-test example.
Extend AppHostView class to overwrite the `content` property of ContentView.
Sanitize router states and cache when closing modal view
@MartoYankov
Copy link
Contributor Author

test branch_testsappng#ns-40

@SvetoslavTsenov
Copy link
Contributor

TestsAppNg is not building for both platforms. Probably not

ERROR in node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'.
app/list-view/async-pipe-template.component.ts(1,10): error TS2305: Module '"/Users/nsbuilduser/workspace/composite-testsappng/tests-app-ng/node_modules/rxjs/Observable"' has no exported member 'Observable'.
app/list-view/multiple-templates.component.ts(1,10): error TS2305: Module '"/Users/nsbuilduser/workspace/composite-testsappng/tests-app-ng/node_modules/rxjs/Observable"' has no exported member 'Observable'.
app/button/button-text-alignment.component.ts(1,10): error TS2305: Module '"/Users/nsbuilduser/workspace/composite-testsappng/tests-app-ng/node_modules/rxjs/Observable"' has no exported member 'Observable'.

@sis0k0
Copy link
Contributor

sis0k0 commented Apr 29, 2018

@SvetoslavTsenov @MartoYankov The ns-40 branch in nativescript/tests-app-ng is not compatible with NG 6. It should be rebased on top of the master branch. NativeScript/tests-app-ng#36

@MartoYankov
Copy link
Contributor Author

test branch_testsappng#ns-40

1 similar comment
@SvetoslavTsenov
Copy link
Contributor

test branch_testsappng#ns-40

@MartoYankov MartoYankov merged commit b98da83 into master May 4, 2018
@ghost ghost removed the in progress label May 4, 2018
@vchimev vchimev deleted the ns-40 branch May 4, 2018 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants