I have a scope like $scope.doc_details in my angularjs controller, and I want to use it to display a pdf file by using a tag, like this:
$scope.doc_details
The browser tries to process the thing before AngularJS replaced the angulary expression with something the browser can work with, causing an error.
Adding an ng-cloak fixes the issue.
ng-cloak