3 ms·
There is an immense amount of guilt and shame concerning the subject of markup and JavaScript living together. It may help if you rationalize it this way. The
by xaritas 14y ago
There is an immense amount of guilt and shame concerning the subject of markup and JavaScript living together. It may help if you rationalize it this way.
The second one not HTML at all, rather it is written in an XML-like configuration language which declaratively specifies the structure of the view, in which the attributes use Angular's JavaScript-like expression DSL to declaratively specify how its elements are bound to the behaviors available on whatever controller has been injected into this template. This allows you (or a non-coding designer) to completely change up the connections, appearance or structure of the view while touching no JavaScript whatsoever.
So in this case the markup and the behavior can be intimate, without actually coupling; thus there is no need for anxiety.