3 ms·
Few problems with your argument. 1) The first example is a template/view. It is reactively updated automatically when the values referenced are updated. It map
by chrisrhoden 13y ago
Few problems with your argument.
1) The first example is a template/view. It is reactively updated automatically when the values referenced are updated. It maps to markup on the page. The second example is a basic control structure that does nothing.
2)
<span ng-bind="foo == bar ? '...' : '...'"></span>
- cia_plant 13y agoYeah, I'm not saying that Angular literally replaces javascript "if" syntax with SGML syntax. However, it does fit in with a long line of tools whose premise is "Normal programming with normal control flow is an insufficient tool for the unique problems of ${DOMAIN}. We need to create a new programming model with its own syntax and exotic control flow to make things easier." The appearance of the "if-statement-in-markup" (or "if-statement-in-flowchart-diagrams", etc.) is to me a sure sign of a certain kind of misguided system.
- chrisrhoden 13y agoYou mean like literally every other template language for the web?
- endeavour 13y agoNot sure why this is being downvoted. The fact that people keep creating template languages like this doesn't mean they're an elegant solution.