|
|
|
|
|
by tsneed290
3485 days ago
|
|
This part is pretty scary... (sorry for the bad formatting) ... but god forbid you mix up the syntax - the following will simply silently fail with no warnings: <template *ngIf="condition">...</template>
The reason is because the you see is a syntactic sugar that essentially wraps the element in a <template>. The problem is when used on <template> tag this gets translated into:* <template [ngIf]="condition"><template>...</template></template>
which doesn’t render anything at all. |
|
Debugging is just a cold dark hell where very very few resources can help you find what went wrong, you basically just need to litter everything with console logs (Except the template html syntax, which you can't just write JS log statements in since... it's not javascript, its it's own language.
I've become much more productive and comfortable in all the JS vdom frameworks which have no template language, just javascript.