Title: Wrong directive 'ccFor' · Issue #3 · codecraft-tv/angular2-sample-code · GitHub
Open Graph Title: Wrong directive 'ccFor' · Issue #3 · codecraft-tv/angular2-sample-code
X Title: Wrong directive 'ccFor' · Issue #3 · codecraft-tv/angular2-sample-code
Description: The following directive is wrong: (angular2-sample-code/5.built-in-directives/6.structural-directives/script.ts) @Directive({ selector: '[ccFor]' }) export class CodeCraftForOfDirective { constructor(private templateRef: TemplateRef
Open Graph Description: The following directive is wrong: (angular2-sample-code/5.built-in-directives/6.structural-directives/script.ts) @Directive({ selector: '[ccFor]' }) export class CodeCraftForOfDirective { construct...
X Description: The following directive is wrong: (angular2-sample-code/5.built-in-directives/6.structural-directives/script.ts) @Directive({ selector: '[ccFor]' }) export class CodeCraftForOfDirective { c...
Opengraph URL: https://github.com/codecraft-tv/angular2-sample-code/issues/3
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wrong directive 'ccFor'","articleBody":"The following directive is wrong: (angular2-sample-code/5.built-in-directives/6.structural-directives/script.ts)\r\n\r\n```\r\n@Directive({\r\n selector: '[ccFor]'\r\n})\r\nexport class CodeCraftForOfDirective {\r\n constructor(private templateRef: TemplateRef\u003cany\u003e,\r\n private viewContainer: ViewContainerRef) {\r\n }\r\n\r\n @Input() set ccForOf(collection: any) {\r\n if (condition) {\r\n this.viewContainer.createEmbeddedView(this.templateRef);\r\n } else {\r\n this.viewContainer.clear();\r\n }\r\n }\r\n}\r\n```\r\n\r\nThe **condition** boolean variable is not defined. ","author":{"url":"https://github.com/rbatllet","@type":"Person","name":"rbatllet"},"datePublished":"2018-02-26T11:48:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3/angular2-sample-code/issues/3"}
| 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:58be3af1-f8e1-fc7f-dd4e-43d7d98c05d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB80:815A8:1946119:21DE7AF:697D262F |
| html-safe-nonce | 41b6badc13967c88408d6d241d0e02608e69f3f73c2fa2101e01932f924c34c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjgwOjgxNUE4OjE5NDYxMTk6MjFERTdBRjo2OTdEMjYyRiIsInZpc2l0b3JfaWQiOiI2ODA4NTkzNjA5MjE4OTI2MTI3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 601ad99654316372a12e405132bc54611e72bd31784715971e8a5c58d4cf1025 |
| hovercard-subject-tag | issue:300207793 |
| 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/codecraft-tv/angular2-sample-code/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c3b5d953af65ebdc2afc88c52a14481ad5aa1e6bb920300885372d8fdcb65fd3/codecraft-tv/angular2-sample-code/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c3b5d953af65ebdc2afc88c52a14481ad5aa1e6bb920300885372d8fdcb65fd3/codecraft-tv/angular2-sample-code/issues/3 |
| og:image:alt | The following directive is wrong: (angular2-sample-code/5.built-in-directives/6.structural-directives/script.ts) @Directive({ selector: '[ccFor]' }) export class CodeCraftForOfDirective { construct... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rbatllet |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85f2067815dbbcfc3c95ddc086aaa4bb85c804c8c1fb2c0a58abac2793271b0b |
| turbo-cache-control | no-preview |
| go-import | github.com/codecraft-tv/angular2-sample-code git https://github.com/codecraft-tv/angular2-sample-code.git |
| octolytics-dimension-user_id | 13587475 |
| octolytics-dimension-user_login | codecraft-tv |
| octolytics-dimension-repository_id | 68929917 |
| octolytics-dimension-repository_nwo | codecraft-tv/angular2-sample-code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 68929917 |
| octolytics-dimension-repository_network_root_nwo | codecraft-tv/angular2-sample-code |
| 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 | 2c8ad0f3fda6467e88f69a0b1fb9a04f96d34a4d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width