{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/angular/issues/21733","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/21733/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/21733/comments","events_url":"https://api.github.com/repos/angular/angular/issues/21733/events","html_url":"https://github.com/angular/angular/issues/21733","id":291008097,"number":21733,"title":"fullTemplateTypeCheck doesn't catch missing properties under *ngIf","user":{"login":"buu700","id":415435,"avatar_url":"https://avatars3.githubusercontent.com/u/415435?v=4","gravatar_id":"","url":"https://api.github.com/users/buu700","html_url":"https://github.com/buu700","followers_url":"https://api.github.com/users/buu700/followers","following_url":"https://api.github.com/users/buu700/following{/other_user}","gists_url":"https://api.github.com/users/buu700/gists{/gist_id}","starred_url":"https://api.github.com/users/buu700/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buu700/subscriptions","organizations_url":"https://api.github.com/users/buu700/orgs","repos_url":"https://api.github.com/users/buu700/repos","events_url":"https://api.github.com/users/buu700/events{/privacy}","received_events_url":"https://api.github.com/users/buu700/received_events","type":"User","site_admin":false},"labels":[{"id":375501288,"url":"https://api.github.com/repos/angular/angular/labels/comp:%20core%20&%20compiler","name":"comp: core & compiler","color":"c7def8","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-01-23T21:58:16Z","updated_at":"2018-02-09T00:15:32Z","closed_at":"2018-02-09T00:15:31Z","author_association":"NONE","body":"<!--\r\nPLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.\r\n\r\nISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.\r\n-->\r\n\r\n## I'm submitting a...\r\n<!-- Check one of the following options with \"x\" -->\r\n<pre><code>\r\n[ ] Regression (a behavior that used to work and stopped working in a new release)\r\n[x] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->\r\n[ ] Feature request\r\n[ ] Documentation issue or request\r\n[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n</code></pre>\r\n\r\n## Current behavior\r\n<!-- Describe how the issue manifests. -->\r\n\r\n```json\r\n{\r\n\t\"angularCompilerOptions\": {\r\n\t\t\"fullTemplateTypeCheck\": true\r\n\t},\r\n\t...\r\n}\r\n```\r\n\r\n```ts\r\n// import {balls} from './misc-functions';\r\n\r\n@Component({\r\n\tselector: 'my-foo',\r\n\tstyleUrls: ['./foo.scss'],\r\n\ttemplateUrl: './foo.html'\r\n})\r\nexport class FooComponent {\r\n\t// public readonly balls: typeof balls = balls;\r\n}\r\n```\r\n\r\n```html\r\n<div *ngIf='true'>{{balls()}}</div>\r\n```\r\n\r\nBuild succeeds; run-time error `TypeError: _co.balls is not a function`.\r\n\r\n## Expected behavior\r\n<!-- Describe what the desired behavior would be. -->\r\n\r\nThe compiler should have caught that the commented out lines were missing from `FooComponent`.\r\n\r\n## Minimal reproduction of the problem with instructions\r\n<!--\r\nFor bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via\r\nhttps://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).\r\n-->\r\n\r\n1. Clone https://github.com/buu700/angular-21733-test\r\n\r\n2. `ng build --prod`\r\n\r\n3. Build (incorrectly) succeeds\r\n\r\n## What is the motivation / use case for changing the behavior?\r\n<!-- Describe the motivation or the concrete use case. -->\r\n\r\nCatching bugs.\r\n\r\n## Environment\r\n\r\n<pre><code>\r\nAngular version: 5.2.1\r\n<!-- Check whether this is still an issue in the most recent Angular version -->\r\n\r\nBrowser: N/A\r\n \r\nFor Tooling issues:\r\n- Node version: 8.9.4\r\n- Platform: Linux (Debian 9.3 x86-64)\r\n\r\nOthers:\r\n<!-- Anything else relevant?  Operating system version, IDE, package manager, HTTP server, ... -->\r\nCLI version: 1.6.5\r\nTypeScript version: 2.6.2\r\n</code></pre>\r\n"}}
{"actor":{"display_login":"chuckjaz"}}