angularjs expression in html <object> tag

后端 未结 5 2247
感情败类
感情败类 2020-12-03 03:42

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:



        
5条回答
  •  無奈伤痛
    2020-12-03 04:05

    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.

提交回复
热议问题