I got error as 'Template parse errors: "let-" is only supported on ng-template elements' when updating from angular 2 to angular 4. I have attached the screenshot for the same.
Asked
Active
Viewed 126 times
-1

Kushal Patel
- 1
- 2
-
add some code to help you – Aravind Nov 04 '17 at 12:31
-
it should be `
` – Hareesh Nov 04 '17 at 12:41
1 Answers
0
In Angular 2, you were allowed to use the <template>
tag for TemplateRef
s, but since this is an actual HTML tag, it was deprecated in favor of <ng-template>
in Angular 4. So just change the name of the tag and it should work.

Christian
- 2,676
- 3
- 15
- 25