5 ms·
I think a better way to phrase #10 is "Don't do DOM manipulation anywhere other than a directive." If there's a complex jQuery widget (say, a date selector) th
by ejdyksen 12y ago
I think a better way to phrase #10 is "Don't do DOM manipulation anywhere other than a directive."
If there's a complex jQuery widget (say, a date selector) that works well for you, then wrap it in a simple directive and be done.
I've done this a number of times with no problem.
- jaunkst 12y agoThis is the way to go. Sometimes you just have to build your own from scratch.