「bower install pdfmake」を使用して、pdfMake を操作するために関連ファイルをダウンロードしました。
このライブラリをAngularで使用したいです。
これは私のサンプルコードです
角度コントローラー:
$scope.pdfMaker = function(){
var docDefinition = { content: 'This is an sample PDF printed with pdfMake' };
pdfMake.createPdf(docDefinition).open();
}
html:
<button ng-click="pdfMaker()">run pdf</button>
私は何が欠けていますか?なぜこれが機能しないのですか?