Message from JavaScript discussions

September 2020

— Rephrase it again, you need to form a question

— 

Hi determin1st I am trying to format JSON data being displayed on a table. Here is what I am trying to achieve, for empty rows, instead of being blank , I fill them with a hyphen, values greater than 25 I fill there individual cells background with red color, values between 20 and 25 I fill them with yellow color, but for some weird reason my table is not being formatted completely, it is like it is not detecting the ngAfterViewInit() function

— You already use a framework, you should not manually go through the DOM and change things (Angular will wipe them on a redraw), you should use Angulars built-in HTML templating engine to decide when to use which style

Message permanent page

— E.g. <td><template ng-if="!data">NO DATA</template></template ng-else>{{ data }}</template></td>

— Ye, right☝️ was cleaning my keyboard and desk, took the Infinity🤤.. well, if you like to step away from automation framework, the mechanistic data structure is where to start from, DOM is a tree, so the JSON is.. then you do a simplified tree traversal node.firstChild.firstChild.children[2] and get those cells (in case of SSR)..

Message permanent page

— Oh god please no

— Why not some refreshing experience🤤

— Look wat css+html can do: https://css-tricks.com/how-to-make-a-media-query-less-card-component/

— Anyone using Anime.js??

— How is correct this syntax: <input type="text" readonly> because new html right, i look at MDN examples, they say <input type="text" readonly="readonly"/>🤔 seems like obsolete parts from xml.. okay.. better syntax only then..

Message permanent page

— Frameworks working with shadow dom prefer with / at the end

— Is that because they use some html parser hmm..🤔 or that's easier to determine self-containers.. oke, got it..

Message permanent page