Title: fix(command/generate): directive selector should be camelcase · Issue #424 · angular/angular-cli · GitHub
Open Graph Title: fix(command/generate): directive selector should be camelcase · Issue #424 · angular/angular-cli
X Title: fix(command/generate): directive selector should be camelcase · Issue #424 · angular/angular-cli
Description: Generating a directive using: $ ng g directive my-directive Generates a directive that looks like this: @Directive({ selector: 'my-directive', providers: [], host: {}, }) class MyDirective {} There are a two things that need a fix IMO: d...
Open Graph Description: Generating a directive using: $ ng g directive my-directive Generates a directive that looks like this: @Directive({ selector: 'my-directive', providers: [], host: {}, }) class MyDirective {} There...
X Description: Generating a directive using: $ ng g directive my-directive Generates a directive that looks like this: @Directive({ selector: 'my-directive', providers: [], host: {}, }) class MyDirective ...
Opengraph URL: https://github.com/angular/angular-cli/issues/424
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(command/generate): directive selector should be camelcase","articleBody":"Generating a directive using:\n\n```\n$ ng g directive my-directive\n```\n\nGenerates a directive that looks like this:\n\n```\n@Directive({\n selector: 'my-directive',\n providers: [],\n host: {},\n\n})\nclass MyDirective {}\n```\n\nThere are a two things that need a fix IMO:\n1. directive selectors should be camelcase, so instead of `my-directive` I should get `myDirective`\n2. `providers` and `host` are not necessarily needed maybe we can simply remove those?\n3. If we can't remove them, then the trailing comma and newline should be at least removed\n","author":{"url":"https://github.com/0x-r4bbit","@type":"Person","name":"0x-r4bbit"},"datePublished":"2016-04-12T10:28:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/424/angular-cli/issues/424"}
| 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:8b822f04-f3de-960d-8248-1d4168d36be3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D71E:EC594:351D87:48B99E:69774C18 |
| html-safe-nonce | 53e3d976e4bc377d482f98681298da7a95b895630f0e6f1fc87e627f986b9cd4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzFFOkVDNTk0OjM1MUQ4Nzo0OEI5OUU6Njk3NzRDMTgiLCJ2aXNpdG9yX2lkIjoiODg1MzU5MjEyNjI4NTg5MjYzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5e097403aab38e68c9bb3e1f0993c514011f04d0d63daa94171e1629cec83d0f |
| hovercard-subject-tag | issue:147704253 |
| 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-cli/424/issue_layout |
| twitter:image | https://opengraph.githubassets.com/446a9399b055f33764e5f496cb5d78cd530157a32844a5e662e4c3f54ff0258c/angular/angular-cli/issues/424 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/446a9399b055f33764e5f496cb5d78cd530157a32844a5e662e4c3f54ff0258c/angular/angular-cli/issues/424 |
| og:image:alt | Generating a directive using: $ ng g directive my-directive Generates a directive that looks like this: @Directive({ selector: 'my-directive', providers: [], host: {}, }) class MyDirective {} There... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 0x-r4bbit |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| 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 | d37e99eca9fba24ee37da98481d573461cc1ab7d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width