Here we will learn ng-cloak directive in Angular JS and a simple example of the ng-cloak directive. Angular Js provides a special type of directive which is used to prevent the document from showing incomplete Angular Js code while your application is loading.

What is ng-cloak directive in Angular JS?

Angular Js provides a special type of directive which is used to prevent the document from showing incomplete Angular Js code while your application is loading.
The ng-cloak directive also prevent the application from showing some undesirable flcker effect while the application is loading.


<element ng-cloak></element>

Where element can be any html element like <p>, <div> etc.


<!DOCTYPE html>


Angular JS Example

<script src=""></script>

<div ng-app="">

<p ng-cloak>{{ 10 + 5 }}</p>


The example will show how can we prevent our application from showing  incomplete Angular Js code while the application is loading.




View More:


I hope this is a useful tutorial for you. Please don’t hesitate to comment for any technical help. Your feedback and comments are appreciated.

Thank You.


  • With havin so much content and articles do you ever run into any problems of plagorism or copyright violation? My blog has a lot of unique content I’ve either written myself or outsourced but it appears a lot of it is popping it up all over the internet without my agreement. Do you know any solutions to help reduce content from being ripped off? I’d genuinely appreciate it.|

  • Superb site you have here but I was curious about if you knew of any forums that cover the same topics discussed in this article? I’d really love to be a part of online community where I can get advice from other experienced people that share the same interest. If you have any recommendations, please let me know. Many thanks!|

  • I have realized that in digital camera models, unique sensors help to concentrate automatically. The actual sensors associated with some video cameras change in in the area of contrast, while others employ a beam with infra-red (IR) light, particularly in low light. Higher specs cameras often use a mix of both models and could have Face Priority AF where the dslr camera can ‘See’ any face while keeping your focus only in that. Thanks for sharing your thinking on this blog site.

  • Hello There. I found your weblog the usage of msn. This is an extremely neatly written article. I will be sure to bookmark it and return to learn more of your helpful info. Thanks for the post. I will definitely return.|

  • Hello! I simply want to give you a huge thumbs up for the great information you have got right here on this post. I’ll be coming back to your site for more soon.|

  • I wish to express appreciation to this writer for rescuing me from such a problem. Because of scouting throughout the internet and coming across solutions that were not powerful, I believed my life was gone. Existing without the presence of solutions to the issues you’ve sorted out by means of your site is a serious case, and the kind that might have in a wrong way affected my career if I hadn’t come across your web blog. Your understanding and kindness in dealing with all areas was tremendous. I don’t know what I would have done if I had not encountered such a subject like this. It’s possible to at this time look ahead to my future. Thank you so much for the reliable and result oriented help. I will not be reluctant to suggest the website to anybody who ought to have assistance about this problem.

  • 238935 515247Just wanna remark which you have a extremely nice internet site , I like the layout it in fact stands out. 22054

  • Hi, I do believe this is a great site. I stumbledupon it 😉 I’m going to revisit once again since i have book marked it. Money and freedom is the greatest way to change, may you be rich and continue to help others.|