Angularjs: Blinking Syntax

    This is a issue I call the angularjs "blinking syntax" because for a quick second users are able to see angularjs syntax in the web page, which isn't good. This issue becomes a greater problem for those with a slow connection. Cause is simple, using {{}} inline, which is much slower compared to other methods. Instead one solution is to use the ng-bind inline or can also create a directive.

Resource
why ng-bind is better than {{}} in angular? - Stack Overflow
inline conditionals in angular.js - Stack Overflow - Also by using a directive you can separate your logic more. Making your code cleaner or easier to maintain.
ng-cloak/ng-show elements blink - Stack Overflow - This will not always solve the problem, but using this along with ng-bing or a directive I think is appropriate. 

Popular posts from this blog

Aspetcore: NLog with Postgresql

Mongodb Cheatsheet

Installing Windows on Acer chromebook 15 cb3-532