Title: Angular 9: Using ngIf changes order of children inside a StackLayout · Issue #2176 · NativeScript/nativescript-angular · GitHub
Open Graph Title: Angular 9: Using ngIf changes order of children inside a StackLayout · Issue #2176 · NativeScript/nativescript-angular
X Title: Angular 9: Using ngIf changes order of children inside a StackLayout · Issue #2176 · NativeScript/nativescript-angular
Description: Environment CLI: 6.7.4 Cross-platform modules: 6.5.0 Android Runtime: 6.5.1 iOS Runtime: 6.5.1 NativeScript-Angular: 9.0.0 Angular: 9.1.0 Describe the bug After upgrading from Angular 8 to Angular 9: When using *ngIf on a component that'...
Open Graph Description: Environment CLI: 6.7.4 Cross-platform modules: 6.5.0 Android Runtime: 6.5.1 iOS Runtime: 6.5.1 NativeScript-Angular: 9.0.0 Angular: 9.1.0 Describe the bug After upgrading from Angular 8 to Angular ...
X Description: Environment CLI: 6.7.4 Cross-platform modules: 6.5.0 Android Runtime: 6.5.1 iOS Runtime: 6.5.1 NativeScript-Angular: 9.0.0 Angular: 9.1.0 Describe the bug After upgrading from Angular 8 to Angular ...
Opengraph URL: https://github.com/NativeScript/nativescript-angular/issues/2176
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular 9: Using ngIf changes order of children inside a StackLayout","articleBody":"**Environment**\r\n - CLI: 6.7.4\r\n - Cross-platform modules: 6.5.0\r\n - Android Runtime: 6.5.1\r\n - iOS Runtime: 6.5.1\r\n - NativeScript-Angular: 9.0.0\r\n - Angular: 9.1.0\r\n \r\n**Describe the bug**\r\nAfter upgrading from Angular 8 to Angular 9: When using `*ngIf` on a component that's together with other components wrapped by a `StackLayout`, the component with ngIf is always added as the last child when the Page is rendered.\r\n\r\n```\r\n\u003cStackLayout\u003e\r\n \u003cLabel text=\"Line 1\"\u003e\u003c/Label\u003e\r\n \u003cLabel text=\"Line 2\" *ngIf=\"true\"\u003e\u003c/Label\u003e\r\n \u003cLabel text=\"Line 3\"\u003e\u003c/Label\u003e\r\n\u003c/StackLayout\u003e\r\n```\r\n\r\n\r\n\r\n**To Reproduce**\r\nJust start the app from the sample repository.\r\n\r\n**Expected behavior**\r\n\"Line 2\" is between \"Line 1\" and \"Line 3\". ngIf does not change the order of the elements.\r\n\r\n**Sample project**\r\n[See here](https://github.com/OliverNiebsch/NativeScriptAngular9)\r\n\r\nPlease ask when something is left uncleared. Thanks in advance! ","author":{"url":"https://github.com/OliverNiebsch","@type":"Person","name":"OliverNiebsch"},"datePublished":"2020-06-09T11:52:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/2176/nativescript-angular/issues/2176"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cbc9ca12-3409-4a5f-f795-d497eda7626c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C64C:1672C1:DC10C2:120168C:696B0398 |
| html-safe-nonce | 6e23c72c3d3ddf80c06568de15d068b7c6e6ea3a2794a38791d35ca2928e1869 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjRDOjE2NzJDMTpEQzEwQzI6MTIwMTY4Qzo2OTZCMDM5OCIsInZpc2l0b3JfaWQiOiI2MTUwMzgxMTM1MTQyMjU3NTYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8d48e9447c9cd5037c8a8a3d343baef9d858c8bd08b27b6bb481802703663f15 |
| hovercard-subject-tag | issue:635362231 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-angular/2176/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9f6a2100df027e3b68588375eb6cd4380c97e0569a01aa46e05e67792746c0af/NativeScript/nativescript-angular/issues/2176 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9f6a2100df027e3b68588375eb6cd4380c97e0569a01aa46e05e67792746c0af/NativeScript/nativescript-angular/issues/2176 |
| og:image:alt | Environment CLI: 6.7.4 Cross-platform modules: 6.5.0 Android Runtime: 6.5.1 iOS Runtime: 6.5.1 NativeScript-Angular: 9.0.0 Angular: 9.1.0 Describe the bug After upgrading from Angular 8 to Angular ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | OliverNiebsch |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-angular git https://github.com/NativeScript/nativescript-angular.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 35951404 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35951404 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width