I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
I have a project with two simple modules EmailModule and CalendarModule. Both modules are exactly the same other then the names (both import CommonModule). In EmailModule, I can use *ngFor on a <div> element. In CalendarModule, I receive a compilation error:
Template parse errors:
Can't bind to 'ngForIn' since it isn't a known property of 'div'
A working demonstration of the bug can be seen on StackBlitz here. Simply uncomment the html code in the calendar.component.ts file.
Notice that the exact same code in EmailModule works. I'm experiencing this problem on both my local dev environment, as well as StackBlitz.
Expected behavior
It is expected that both EmailModule and CalendarModule compile without error and that I can use *ngFor on a div element.
Minimal reproduction of the problem with instructions
A working demonstration of the bug can be seen on StackBlitz here. Simply uncomment the html code in the calendar.component.ts file.
Environment
Angular version: 5.1.2
Browser:
- [x] Chrome (desktop) version 63
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Node version: 8.9.1
- Platform: Mac
Others:
I'm submitting a...
Current behavior
I have a project with two simple modules
EmailModuleandCalendarModule. Both modules are exactly the same other then the names (both importCommonModule). InEmailModule, I can use*ngForon a<div>element. InCalendarModule, I receive a compilation error:A working demonstration of the bug can be seen on StackBlitz here. Simply uncomment the html code in the
calendar.component.tsfile.Notice that the exact same code in
EmailModuleworks. I'm experiencing this problem on both my local dev environment, as well as StackBlitz.Expected behavior
It is expected that both
EmailModuleandCalendarModulecompile without error and that I can use*ngForon adivelement.Minimal reproduction of the problem with instructions
A working demonstration of the bug can be seen on StackBlitz here. Simply uncomment the html code in the
calendar.component.tsfile.Environment