Title: Element custom attribute's styles are only applied on initalization but not on further changes. · Issue #7914 · NativeScript/NativeScript · GitHub
Open Graph Title: Element custom attribute's styles are only applied on initalization but not on further changes. · Issue #7914 · NativeScript/NativeScript
X Title: Element custom attribute's styles are only applied on initalization but not on further changes. · Issue #7914 · NativeScript/NativeScript
Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.1.2 Cross-platform modules: Android Runti...
Open Graph Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.1...
X Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.1...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/7914
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Element custom attribute's styles are only applied on initalization but not on further changes.","articleBody":"**Environment**\r\nProvide version numbers for the following components (information can be retrieved by running `tns info` in your project folder or by inspecting the `package.json` of the project):\r\n - CLI: 6.1.2\r\n - Cross-platform modules:\r\n - Android Runtime: Android 9\r\n - iOS Runtime:\r\n - Plugin(s):\r\n\r\n**Describe the bug**\r\nElement custom attribute's styles are only applied on initalization but not on further changes.\r\n\r\n**To Reproduce**\r\n1. check `bgRed` value in console by clicking `get bgRed` // you will get `false`\r\n2. click toggle to invert `bgRed` from `false` to true\r\n3. check `bgRed` value in console again by clicking `get bgRed` // you will get `true`\r\n\r\n**Expected behavior**\r\nbackground color will change from blue to red after step 2\r\n\r\n**Sample project**\r\n[https://play.nativescript.org/?template=play-vue\u0026id=qXgtKz\u0026v=2](https://play.nativescript.org/?template=play-vue\u0026id=qXgtKz\u0026v=2)\r\n\r\n**Additional context**\r\nI can confirm this is not a bug of vue/angular framework as other developer from angular has also reported that this is not work in augular either. Link is provided as follow:\r\n\r\n[https://github.com/nativescript-vue/nativescript-vue/issues/557#issuecomment-538711359](https://github.com/nativescript-vue/nativescript-vue/issues/557#issuecomment-538711359)\r\n","author":{"url":"https://github.com/mannok","@type":"Person","name":"mannok"},"datePublished":"2019-10-07T19:10:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/7914/NativeScript/issues/7914"}
| 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:b57430d5-6591-e604-e414-98f7ee74ef4f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91B4:B3582:39FE1E6:4E0C72D:69731A23 |
| html-safe-nonce | f961439aed774cead0918c054217c889e80addc25ab55c8ded124e451b2f9901 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUI0OkIzNTgyOjM5RkUxRTY6NEUwQzcyRDo2OTczMUEyMyIsInZpc2l0b3JfaWQiOiI3NjkzMjIzNjAzNjU0MDQwMDk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 02b1136822a41677499881337ceb60b661666f5d6b4bcfb316a17442a3de41f1 |
| hovercard-subject-tag | issue:503636462 |
| 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/7914/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1e8058f2e5951322dc9d287fa47da13088a4f561027f01b17af407ff8d9b4feb/NativeScript/NativeScript/issues/7914 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1e8058f2e5951322dc9d287fa47da13088a4f561027f01b17af407ff8d9b4feb/NativeScript/NativeScript/issues/7914 |
| og:image:alt | Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mannok |
| hostname | github.com |
| expected-hostname | github.com |
| None | 44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| 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 | a5e2b48bd1260476599758f5d253b5d24092ab84 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width