Y
Hacker News
new
|
ask
|
show
|
jobs
by
joebeetee
4582 days ago
Looks like your ng-cloak isn't working - you may need to add a few CSS classes - see here
http://stackoverflow.com/questions/11249768/angularjs-ng-clo...
1 comments
xando
4582 days ago
author here. I'm using ng-cloak, but maybe I misunderstood the way how this should be defined there, or maybe is not working well with less.js.
Thanks for the link I will have a second look.
link
Bahamut
4582 days ago
`ng-cloak` doesn't work if your scripts are not in the head. Also, you should not use the less.js script in production, it is unbelievably slow. You should compile the LESS files into CSS files before deploying to a live site.
link
almost
4582 days ago
Add
.ng-cloak {display: none !important;}
To your css. You've already added the ng-cloak class to your element, angular will remove it once it is done loading.
link
xando
4582 days ago
Thanks for the suggestion. Should be fixed by now.
link
Thanks for the link I will have a second look.