Title: Clarification for member sequence · Issue #55703 · angular/angular · GitHub
Open Graph Title: Clarification for member sequence · Issue #55703 · angular/angular
X Title: Clarification for member sequence · Issue #55703 · angular/angular
Description: Describe the problem that you experienced The Angular style guide states that public properties should come before private properties. But. If I have a private Subject that I want to publically expose, how do I do that without breaking t...
Open Graph Description: Describe the problem that you experienced The Angular style guide states that public properties should come before private properties. But. If I have a private Subject that I want to publically exp...
X Description: Describe the problem that you experienced The Angular style guide states that public properties should come before private properties. But. If I have a private Subject that I want to publically exp...
Opengraph URL: https://github.com/angular/angular/issues/55703
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":" Clarification for member sequence","articleBody":"### Describe the problem that you experienced\n\nThe Angular [style guide](https://angular.io/guide/styleguide#member-sequence) states that public properties should come before private properties. But. If I have a private Subject that I want to publically expose, how do I do that without breaking this style guide?\r\n\r\n```\r\nprivate readonly _subject$ = new Subject();\r\n\r\nsubject$ = this._subject$.asObservable();\r\n```\r\n\r\nThe public property references the private one, meaning that it has to come first. If I'm to use a getter, the observable would be returned as value, not reference. Is there a trick out there I'm not aware of?\n\n### Enter the URL of the topic with the problem\n\nhttps://angular.io/guide/styleguide#member-sequence\n\n### Describe what you were looking for in the documentation\n\n_No response_\n\n### Describe the actions that led you to experience the problem\n\n_No response_\n\n### Describe what you want to experience that would fix the problem\n\n_No response_\n\n### Add a screenshot if that helps illustrate the problem\n\n_No response_\n\n### If this problem caused an exception or error, please paste it here\n\n_No response_\n\n### If the problem is browser-specific, please specify the device, OS, browser, and version\n\n_No response_\n\n### Provide any additional information here in as much as detail as you can\n\n_No response_","author":{"url":"https://github.com/andreaslarssen","@type":"Person","name":"andreaslarssen"},"datePublished":"2024-05-07T07:03:27Z","url":"https://github.com/angular/angular/issues/55703"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:83f75fce-e8ca-0929-9582-1b0017d140c3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A4FA:19AA62:E25F1C:120D799:6B0107D8 |
| html-safe-nonce | 72f7522ebe2e4928e386fe593b48703398028d9a49a8a88f054ae6be99ccc947 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEZBOjE5QUE2MjpFMjVGMUM6MTIwRDc5OTo2QjAxMDdEOCIsInZpc2l0b3JfaWQiOiI3NDQ5MjkzNjM3NjM4MjI3OTI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f688527593c0deadf2bfc50b6029f77f0152e8235f3eb1ae5cb084390f191f76 |
| hovercard-subject-tag | issue:2282443895 |
| 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/angular/angular/55703/issue_layout |
| twitter:image | https://opengraph.githubassets.com/17d1f59de80ef000b20987c0b2509655adb7f6bdd9bf72781745c02fd3407c1a/angular/angular/issues/55703 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/17d1f59de80ef000b20987c0b2509655adb7f6bdd9bf72781745c02fd3407c1a/angular/angular/issues/55703 |
| og:image:alt | Describe the problem that you experienced The Angular style guide states that public properties should come before private properties. But. If I have a private Subject that I want to publically exp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andreaslarssen |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width